- handle resize of fit-to-width properly

This commit is contained in:
Richard Alam 2012-02-29 21:09:20 +00:00
parent 801ea6f2a7
commit 90a9b10281

View File

@ -127,8 +127,10 @@ package org.bigbluebutton.modules.present.ui.views.models
} else {
calculateViewportSize();
calculateViewportXY();
_calcPageW = SlideCalcUtil.calcCalcPageSizeWidth(fitToPage, viewportW, _viewedRegionW);
_calcPageH = SlideCalcUtil.calcCalcPageSizeHeight(!isPortraitDoc(), viewportH, _viewedRegionH, _calcPageW, _calcPageH, _pageOrigW, _pageOrigH);
_calcPageW = (viewportW/_viewedRegionW) * 100;
_calcPageH = (_pageOrigH/_pageOrigW) * _calcPageW;
// _calcPageW = SlideCalcUtil.calcCalcPageSizeWidth(fitToPage, viewportW, _viewedRegionW);
// _calcPageH = SlideCalcUtil.calcCalcPageSizeHeight(!isPortraitDoc(), viewportH, _viewedRegionH, _calcPageW, _calcPageH, _pageOrigW, _pageOrigH);
calcViewedRegion();
onResizeMove();
}