From: Michael M Slusarz Date: Wed, 18 Nov 2009 00:54:57 +0000 (-0700) Subject: onContentComplete() should be called after all viewport work is done X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=db751865caad4273ff2d27e0ac5c7246659a1a12;p=horde.git onContentComplete() should be called after all viewport work is done --- diff --git a/imp/js/ViewPort.js b/imp/js/ViewPort.js index b9c70131f..738fc69f0 100644 --- a/imp/js/ViewPort.js +++ b/imp/js/ViewPort.js @@ -820,12 +820,12 @@ var ViewPort = Class.create({ c.update(this.empty_msg); } + this.scroller.updateDisplay(); + if (this.opts.onContentComplete) { this.opts.onContentComplete(c_nodes); } - this.scroller.updateDisplay(); - return true; }, @@ -993,7 +993,7 @@ var ViewPort = Class.create({ sp.currbar = sp[this.pane_mode].bar = new Element('DIV', { className: this.opts.split_bar_class[this.pane_mode] }); if (!this.opts.pane_data.descendantOf(this.opts.container)) { - this.opts.container.insert({ bottom: this.opts.pane_data.remove() }); + this.opts.container.insert(this.opts.pane_data.remove()); } this.opts.pane_data.insert({ before: sp.currbar });