From dfceb138b06415df997a5a906d715fc9de1bbd37 Mon Sep 17 00:00:00 2001 From: Mateus Dalepiane Date: Fri, 13 Feb 2015 03:32:58 -0200 Subject: [PATCH] Implemented an auto hiding toolbar to toggle deskshare options --- ...iewButton.mxml => DesktopViewToolbar.mxml} | 34 +++++++++--------- .../view/components/DesktopViewWindow.mxml | 35 ++++++++----------- 2 files changed, 31 insertions(+), 38 deletions(-) rename bigbluebutton-client/src/org/bigbluebutton/modules/deskshare/view/components/{DesktopViewButton.mxml => DesktopViewToolbar.mxml} (64%) diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/deskshare/view/components/DesktopViewButton.mxml b/bigbluebutton-client/src/org/bigbluebutton/modules/deskshare/view/components/DesktopViewToolbar.mxml similarity index 64% rename from bigbluebutton-client/src/org/bigbluebutton/modules/deskshare/view/components/DesktopViewButton.mxml rename to bigbluebutton-client/src/org/bigbluebutton/modules/deskshare/view/components/DesktopViewToolbar.mxml index 8fcb21cd4b..81abb084ec 100644 --- a/bigbluebutton-client/src/org/bigbluebutton/modules/deskshare/view/components/DesktopViewButton.mxml +++ b/bigbluebutton-client/src/org/bigbluebutton/modules/deskshare/view/components/DesktopViewToolbar.mxml @@ -1,14 +1,12 @@ - + visible="{toolbarVisible}" + horizontalAlign="center" + hideEffect="{fadeOut}" showEffect="{fadeIn}" > - + diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/deskshare/view/components/DesktopViewWindow.mxml b/bigbluebutton-client/src/org/bigbluebutton/modules/deskshare/view/components/DesktopViewWindow.mxml index 4401561af6..72fefefaed 100644 --- a/bigbluebutton-client/src/org/bigbluebutton/modules/deskshare/view/components/DesktopViewWindow.mxml +++ b/bigbluebutton-client/src/org/bigbluebutton/modules/deskshare/view/components/DesktopViewWindow.mxml @@ -86,12 +86,12 @@ with BigBlueButton; if not, see . [Bindable] private var baseIndex:int; [Bindable] private var dsOptions:DeskshareOptions; - + private function init():void{ dsOptions = new DeskshareOptions(); baseIndex = dsOptions.baseTabIndex; } - + private function onCreationComplete():void{ this.addChildAt(videoHolder, 0); videoHolder.percentWidth = 100; @@ -112,21 +112,22 @@ with BigBlueButton; if not, see . maximizeRestoreBtn.tabIndex = baseIndex+2; closeBtn.tabIndex = baseIndex+3; - btnActualSize.registerListeners(this); + bottomBar.registerListeners(this); + fitToActualSize(); } - + private function onResizeStartEvent(event:MDIWindowEvent):void { if (event.window == this) { resizer.onResizeStart(); } } - + private function onResizeEndEvent(event:MDIWindowEvent):void { if (event.window == this) { resizer.onResizeEnd(); } } - + private function onResizeEvent():void { if (this.minimized) { return; @@ -138,15 +139,6 @@ with BigBlueButton; if not, see . else { resizer.onResize(this.width - horizontalBorder, this.height - verticalBorder, this.maximized, video.width, video.height, videoWidth / videoHeight, false, onResizeCallback); } - updateButtonPosition(); - } - - private function updateButtonPosition():void { - if(btnActualSize) { - btnActualSize.x = 0;// this.width - btnActualSize.width*2; - btnActualSize.y = 0;// this.height - btnActualSize.height*2; - trace("x: " + btnActualSize.x + " y: " + btnActualSize.y); - } } private function onResizeCallback(externalWidth:int, externalHeight:int, internalWidth:int, internalHeight:int, internalOffsetX:int, internalOffsetY:int):void { @@ -253,7 +245,6 @@ with BigBlueButton; if not, see . } private function fitWindowToVideo():void { - this.restore(); video.width = videoHolder.width = videoWidth; video.height = videoHolder.height = videoHeight; this.height = videoHeight + verticalBorder; @@ -317,9 +308,13 @@ with BigBlueButton; if not, see . - + + +