]> git.openstreetmap.org Git - potlatch2.git/blobdiff - net/systemeD/controls/AutoComplete.as
Prevent keys/values exceeding 255 characters
[potlatch2.git] / net / systemeD / controls / AutoComplete.as
index a3eaa241708e124a69d3165efa29537010cede8d..527b80490d790922535c97dbd4e9b8d2263d57cc 100644 (file)
@@ -81,6 +81,8 @@ package net.systemeD.controls {
                        setStyle("paddingLeft",0);
                        setStyle("paddingRight",0);
                        rowCount = 7;
+                       
+                       if (maxChars) textInput.maxChars=maxChars;
                }
                
                //--------------------------------------------------------------------------
@@ -93,6 +95,7 @@ package net.systemeD.controls {
                private var showingDropdown:Boolean=false;
                private var tempCollection:Object;
                private var dropdownClosed:Boolean=true;
+               public var maxChars:uint=0;
 
                //--------------------------------------------------------------------------
                //      Overridden Properties