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;