From db751865caad4273ff2d27e0ac5c7246659a1a12 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 17 Nov 2009 17:54:57 -0700 Subject: [PATCH] onContentComplete() should be called after all viewport work is done --- imp/js/ViewPort.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 }); -- 2.11.0