This is an automated email from the ASF dual-hosted git repository.

carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 08d846b  tour-de-jewel: fix show/hide footerbar and drawerfooter
08d846b is described below

commit 08d846bce3fdc1116d7d179f0622fe8e58765e61
Author: Carlos Rovira <[email protected]>
AuthorDate: Wed Oct 28 12:21:24 2020 +0100

    tour-de-jewel: fix show/hide footerbar and drawerfooter
---
 examples/jewel/TourDeJewel/src/main/royale/MainContent.mxml | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/examples/jewel/TourDeJewel/src/main/royale/MainContent.mxml 
b/examples/jewel/TourDeJewel/src/main/royale/MainContent.mxml
index bb741a0..eb96f21 100644
--- a/examples/jewel/TourDeJewel/src/main/royale/MainContent.mxml
+++ b/examples/jewel/TourDeJewel/src/main/royale/MainContent.mxml
@@ -198,6 +198,11 @@ limitations under the License.
 
             [Bindable]
             public var orientation:String = "No Orientation";
+
+            private function switchFooterBar():void
+            {
+                drawerFooter.visible = footerbar.visible = main.hasFooterBar = 
!footerbar.visible;
+            }
         ]]>
     </fx:Script>
 
@@ -245,7 +250,7 @@ limitations under the License.
             </j:Navigation>
         </j:DrawerContent>
 
-        <j:DrawerFooter>
+        <j:DrawerFooter localId="drawerFooter">
             <j:BarSection>
                 <j:IconButton>
                     <j:icon>
@@ -327,7 +332,7 @@ limitations under the License.
                         <js:MaterialToggleIcon 
text="{MaterialIconType.SCREEN_LOCK_ROTATION}" 
selectedText="{MaterialIconType.SCREEN_ROTATION}" />
                     </j:icon>
                 </j:ToggleButton>
-                <j:ToggleButton click="footerbar.visible = !footerbar.visible">
+                <j:ToggleButton click="switchFooterBar()">
                     <j:beads>
                         <j:ToolTip toolTip="show/hide FooterBar"/>
                     </j:beads>

Reply via email to