Bug 877602 - Ensure the viewport-remeasure code runs when it's supposed to. r=Cwiiis

This commit is contained in:
Kartikaya Gupta 2013-07-11 12:49:39 -04:00
parent ae58dd68e8
commit b828b0147c

View File

@ -3197,9 +3197,9 @@ Tab.prototype = {
}
if ((hasHorizontalMargins
&& (pageWidthGreaterThanScreenWidth != this.viewportExcludesHorizontalMargins)) ||
&& (pageWidthGreaterThanScreenWidth == this.viewportExcludesHorizontalMargins)) ||
(hasVerticalMargins
&& (pageHeightGreaterThanScreenHeight != this.viewportExcludesVerticalMargins))) {
&& (pageHeightGreaterThanScreenHeight == this.viewportExcludesVerticalMargins))) {
if (!this.viewportMeasureCallback) {
this.viewportMeasureCallback = setTimeout(function() {
this.viewportMeasureCallback = null;