Merge pull request #4350 from capilkey/2.0-fix-fittopage
Fix for switching back to fit-to-page
This commit is contained in:
commit
457bf87a7e
@ -264,8 +264,6 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
fitSlideToWindowMaintainingAspectRatio();
|
||||
}
|
||||
|
||||
[Bindable] private var fitToPage:Boolean = true;
|
||||
|
||||
private function fitSlideToWindowMaintainingAspectRatio():void {
|
||||
if (this.minimized) return;
|
||||
|
||||
@ -482,9 +480,8 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
resourcesChanged();
|
||||
}
|
||||
|
||||
private function onFitToPage(ftp:Boolean):void {
|
||||
fitToPage = ftp;
|
||||
slideView.switchToFitToPage(fitToPage);
|
||||
private function onFitToPage(ftp:Boolean):void {
|
||||
slideView.switchToFitToPage(ftp);
|
||||
fitSlideToWindowMaintainingAspectRatio();
|
||||
}
|
||||
|
||||
|
@ -242,6 +242,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
public function switchToFitToPage(ftp:Boolean):void {
|
||||
slideModel.switchToFitToPage(ftp);
|
||||
slideModel.onMove(0, 0); // fake a move to reset some values
|
||||
onZoomSlide(100);
|
||||
}
|
||||
|
||||
|
@ -158,6 +158,9 @@ package org.bigbluebutton.modules.present.ui.views.models
|
||||
LOGGER.debug("switchToFitToPage");
|
||||
|
||||
this.fitToPage = ftp;
|
||||
|
||||
saveViewedRegion(0,0,100,100);
|
||||
|
||||
calculateViewportSize();
|
||||
calculateViewportXY();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user