From 00260994d3127bdcf1c7b3d45cdff80c5e746d75 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 18 Nov 2009 00:11:27 -0700 Subject: [PATCH] Some optimizations --- imp/js/ViewPort.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/imp/js/ViewPort.js b/imp/js/ViewPort.js index 2f0fb8cce..753b79a51 100644 --- a/imp/js/ViewPort.js +++ b/imp/js/ViewPort.js @@ -401,11 +401,6 @@ var ViewPort = Class.create({ // size = (integer) The page size to use instead of auto-determining. _onResize: function(size) { - // This is needed for IE 6 - or else horizontal scrolling can occur. - if (!this.opts.content.offsetHeight) { - return this._onResize.bind(this, size).defer(); - } - var h, c = this.opts.content, lh = this._getLineHeight(), @@ -467,7 +462,9 @@ var ViewPort = Class.create({ break; } - this.requestContentRefresh(this.currentOffset()); + if (this.view) { + this.requestContentRefresh(this.currentOffset()); + } }, // offset = (integer) TODO -- 2.11.0