From 323dae6b6133b04768447754c8a24dce984cbde6 Mon Sep 17 00:00:00 2001 From: kreismann Date: Wed, 20 Jul 2016 17:43:44 -0300 Subject: [PATCH] Resizing annotations only when we change the display mode in DesktopViewWindow --- .../view/components/DesktopViewWindow.mxml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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 db6ee858ee..3a36b8eb3d 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 @@ -186,8 +186,18 @@ with BigBlueButton; if not, see . } private function resizeCanvasChildren():void{ - var widthResizeRatio:Number = video.width/whiteboardCanvasHolder.width; - var heightResizeRatio:Number = video.height/whiteboardCanvasHolder.height; + var widthResizeRatio:Number = 1; + var heightResizeRatio:Number = 1; + + if(fullScreen && whiteboardCanvasHolder.width == windowedWidth) { + widthResizeRatio = fullScreenWidth/windowedWidth; + heightResizeRatio = fullScreenHeight/windowedHeight; + } + else if(!fullScreen && whiteboardCanvasHolder.width == fullScreenWidth){ + widthResizeRatio = windowedWidth/fullScreenWidth; + heightResizeRatio = windowedHeight/fullScreenHeight; + } + for (var i:int = 0 ; i < this.whiteboardCanvasHolder.rawChildren.numChildren; i++) { this.whiteboardCanvasHolder.rawChildren.getChildAt(i).width = this.whiteboardCanvasHolder.rawChildren.getChildAt(i).width * widthResizeRatio;