kill stupid tab bug
[potlatch2.git] / net / systemeD / potlatch2 / mapfeatures / editors / ChoiceEditor.mxml
index 97be62ceb046d03785cbd9ae211b3ac849db96a8..deb1dedb8258947f7636cf4769b67819d3203e06 100644 (file)
@@ -2,10 +2,9 @@
 <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}" styleName="titledEditor">
   <mx:Label text="{fieldName}:"/>
   <edit:ChoiceComboBox id="inputBox" dataProvider="{choices}" selectedItem="{selectFromTag}"
       change="value = inputBox.selectedItem.value"
@@ -19,7 +18,6 @@
         </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;
       }