From dcbfbe7e49df8467deddfddeb3eddfce762e4f11 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Tue, 4 Jan 2011 02:29:30 +0000 Subject: [PATCH] fix for third splitpanel element not collapsing properly --- build/js/ox.ui.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build/js/ox.ui.js b/build/js/ox.ui.js index cfabdfa3..7d85be88 100644 --- a/build/js/ox.ui.js +++ b/build/js/ox.ui.js @@ -1487,7 +1487,8 @@ requires function toggle() { if (self.options.collapsible) { - self.options.parent.toggle(self.leftOrTop ? 0 : self.options.elements.length - 1); + // fixme: silly, pass a parameter + self.options.parent.toggle(self.leftOrTop ? 0 : self.options.parent.options('elements').length - 1); self.options.collapsed = !self.options.collapsed; } /* @@ -9298,7 +9299,7 @@ requires (element.collapsed ? 1 : -1), animate = {}; animate[self.edges[pos == 0 ? 0 : 1]] = value; - Ox.print('animate', animate) + Ox.print('animate', animate, self.resizebarElements) that.animate(animate, 200, function() { element.collapsed = !element.collapsed; element.element.triggerEvent('toggle', {