Add label next to icon
authorRichard Fairhurst <richard@systemeD.net>
Sat, 24 Mar 2012 11:55:49 +0000 (11:55 +0000)
committerRichard Fairhurst <richard@systemeD.net>
Sat, 24 Mar 2012 11:55:49 +0000 (11:55 +0000)
net/systemeD/potlatch2/panels/DragAndDropPanel.mxml

index f3305b4..5b9440a 100644 (file)
                </mx:HBox>
 
                <mx:TileList dataProvider="{dndRep.currentItem.getFeaturesForType('point', true)}" width="100%" height="1"
-                                    rowHeight="32" columnWidth="32" updateComplete="resizePOIGrid(event)" styleName="dndPanelTileList">
+                                    rowHeight="32" columnWidth="100" updateComplete="resizePOIGrid(event)" styleName="dndPanelTileList">
                        <mx:itemRenderer>
                                <fx:Component>
-                                       <mx:VBox toolTip="{data.name}">
+                                       <mx:HBox toolTip="{data.name}" horizontalScrollPolicy="off">
                                                <fx:Script><![CDATA[
                                                        import mx.events.DragEvent;
                                                        import mx.managers.DragManager;
@@ -41,7 +41,8 @@
 
                                                ]]></fx:Script>
                                                <mx:Image id="foo" source="{data.dndimage}" height="24" width="24" mouseMove="dragPOI(event, data.tags)" toolTip="{data.name}" />
-                                       </mx:VBox>
+                                               <mx:Label text="{data.name}" />
+                                       </mx:HBox>
                                </fx:Component>
                        </mx:itemRenderer>
                </mx:TileList>