setStyle("paddingLeft",0);
setStyle("paddingRight",0);
rowCount = 7;
+
+ if (maxChars) textInput.maxChars=maxChars;
}
//--------------------------------------------------------------------------
private var showingDropdown:Boolean=false;
private var tempCollection:Object;
private var dropdownClosed:Boolean=true;
+ public var maxChars:uint=0;
//--------------------------------------------------------------------------
// Overridden Properties
public function SetTagAction(entity:Entity, key:String, value:String) {
super(entity, "Set "+key+"="+value);
this.key = key;
- this.value = value;
+ this.value = value.substr(0,255);
}
public override function doAction():uint {
labelField="name"
rowCount="10"
restrict=" -"
+ maxChars="255"
typedText="{outerDocument.selectedItem.key}">
<mx:Script><![CDATA[ import net.systemeD.potlatch2.mapfeatures.*; ]]></mx:Script>
</controls:AutoComplete>
labelField="name"
rowCount="10"
restrict=" -"
+ maxChars="255"
typedText="{outerDocument.selectedItem.value}">
<mx:Script><![CDATA[ import net.systemeD.potlatch2.mapfeatures.*; ]]></mx:Script>
</controls:AutoComplete>