forgot to put in bounds checks after a zoom, specifically zoom out

This commit is contained in:
Chad Pilkey 2013-02-13 18:02:57 -05:00
parent ecaed7318a
commit b200482840

View File

@ -242,9 +242,6 @@ package org.bigbluebutton.modules.present.ui.views.models
var zpyp:Number = zpy/cph;
LogUtil.debug("CHAD 1: zoom: " + zoomValue + " cpw: " + cpw + " cph: " + cph + " _calcPageW: " + _calcPageW + " _calcPageH: " + _calcPageH);
doWidthBoundsDetection();
doHeightBoundsDetection();
LogUtil.debug("CHAD 2: zoom: " + zoomValue + " cpw: " + cpw + " cph: " + cph + " _calcPageW: " + _calcPageW + " _calcPageH: " + _calcPageH);
@ -252,7 +249,6 @@ package org.bigbluebutton.modules.present.ui.views.models
if (fitToPage) {
_calcPageH = viewportH * zoomValue / HUNDRED_PERCENT;
_calcPageW = (_pageOrigW/_pageOrigH)*_calcPageH;
} else {
_calcPageW = viewportW * zoomValue / HUNDRED_PERCENT;
_calcPageH = (_calcPageW/_pageOrigW)*_pageOrigH;
@ -274,6 +270,9 @@ package org.bigbluebutton.modules.present.ui.views.models
LogUtil.debug("CHAD 3: zoom: " + zoomValue + " cpw: " + cpw + " cph: " + cph + " _calcPageW: " + _calcPageW + " _calcPageH: " + _calcPageH);
doWidthBoundsDetection();
doHeightBoundsDetection();
calcViewedRegion();
LogUtil.debug("CHAD 4: zoom: " + zoomValue + " cpw: " + cpw + " cph: " + cph + " _calcPageW: " + _calcPageW + " _calcPageH: " + _calcPageH);