Move reverse tooltip to outer hbox, so that the whole hbox becomes the target for...
authorAndy Allan <gravitystorm@gmail.com>
Wed, 23 Feb 2011 18:28:42 +0000 (18:28 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 9 Mar 2011 11:01:09 +0000 (11:01 +0000)
net/systemeD/potlatch2/Toolbox.mxml

index 14c7a12..a3eab76 100644 (file)
                        toolTip="{deleteToolTipText()}" 
                        width="28" height="28" textAlign="left" y="4" x="6" paddingLeft="6" paddingRight="0" />
 
-        <mx:HBox width="28" height="28" y="4" x="36" borderStyle="solid" cornerRadius="4" click="reverseClicked();" horizontalAlign="center" verticalAlign="middle">
-            <mx:ViewStack id="rotateButtonStack">
+        <mx:HBox id="reverseButton" width="28" height="28" y="4" x="36" borderStyle="solid" cornerRadius="4"
+                  click="reverseClicked();" horizontalAlign="center" verticalAlign="middle" toolTip="Reverse direction (V)">
+            <mx:ViewStack id="rotateButtonStack" creationPolicy="all">
                 <mx:HBox id="arrowBoxWrapper"><!-- changing the viewstack back onto a rotated hbox causes positioning glitches, hence this wrapper -->
                     <!-- I can totally recommend adding borderStyle="solid" to arrowBox when debugging -->
                     <mx:HBox id="arrowBox" horizontalAlign="center" verticalAlign="middle" width="24" height="24">
                         <mx:Image id="arrow" source="@Embed('../../../embedded/arrow.svg')"
                             alpha="{getAlpha('reverseDirection')}"
-                            toolTip="Reverse direction (V)"
                             width="22" height="22"/>
                     </mx:HBox>
                 </mx:HBox>
                 <mx:HBox id="clockwiseBox" horizontalAlign="center" verticalAlign="middle">
                     <mx:Image id="clockwise" source="@Embed('../../../embedded/clockwise.svg')"
                         alpha="{getAlpha('reverseDirection')}"
-                        toolTip="Reverse direction (V)"
                         width="22" height="22" x="2" y="2"/>
                 </mx:HBox>
                 <mx:HBox id="antiClockwiseBox" horizontalAlign="center" verticalAlign="middle">
@@ -45,7 +44,6 @@
                         click='doReverseDirection();'
                         enabled="{canDo('reverseDirection')}"
                         alpha="{getAlpha('reverseDirection')}"
-                        toolTip="Reverse direction (V)"
                         width="22" height="22" x="2" y="2"/>
                 </mx:HBox>
             </mx:ViewStack>