A different way to (hopefully) fix the binding issue
authorAndy Allan <gravitystorm@gmail.com>
Wed, 16 Feb 2011 12:38:29 +0000 (12:38 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Wed, 16 Feb 2011 12:38:29 +0000 (12:38 +0000)
net/systemeD/potlatch2/mapfeatures/editors/ChoiceEditor.mxml

index d43741d..e75eb5e 100644 (file)
@@ -12,7 +12,7 @@
       <edit:itemRenderer>
         <mx:Component>
         <mx:HBox toolTip="{data.description}" horizontalScrollPolicy="off">
-          <mx:Image source="{data.icon}"/>
+          <mx:Image source="{Choice(data).icon}"/>
           <mx:Label htmlText="{data.label}"/>
         </mx:HBox>
         </mx:Component>