kill stupid tab bug
[potlatch2.git] / net / systemeD / potlatch2 / mapfeatures / editors / ChoiceEditor.mxml
index 0df86a97839e8a74a666ec776ff487a502925bfc..deb1dedb8258947f7636cf4769b67819d3203e06 100644 (file)
@@ -2,24 +2,22 @@
 <edit:SingleTagEditor
        xmlns:mx="http://www.adobe.com/2006/mxml" 
        xmlns:edit="net.systemeD.potlatch2.mapfeatures.editors.*"
-       verticalGap="0"
-       toolTip="{fieldDescription}">
+       toolTip="{fieldDescription}"
+    direction="{fieldDirection}" styleName="titledEditor">
 
-<mx:Box direction="{fieldDirection}">
   <mx:Label text="{fieldName}:"/>
   <edit:ChoiceComboBox id="inputBox" dataProvider="{choices}" selectedItem="{selectFromTag}"
       change="value = inputBox.selectedItem.value"
       open="inputBox.dropdown.variableRowHeight = true">
       <edit:itemRenderer>
         <mx:Component>
-        <mx:HBox toolTip="{data.description}">
+        <mx:HBox toolTip="{data.description}" horizontalScrollPolicy="off">
           <mx:Image source="{data.icon}"/>
           <mx:Label htmlText="{data.label}"/>
         </mx:HBox>
         </mx:Component>
       </edit:itemRenderer>
   </edit:ChoiceComboBox>
-</mx:Box>
 
   <mx:Script><![CDATA[
       import mx.collections.*;
@@ -65,7 +63,7 @@
           var choice:Choice = new Choice();
           choice.icon = null;
           choice.description = "Field not set";
-          choice.label = "<i>Unset</i>";
+          choice.label = "<font color='#a0a0a0'><i>Unset</i></font>";
           choice.value = null;
           return choice;
       }