From: Michael M Slusarz Date: Wed, 18 Nov 2009 07:11:27 +0000 (-0700) Subject: Some optimizations X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=00260994d3127bdcf1c7b3d45cdff80c5e746d75;p=horde.git Some optimizations --- 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