fix for third splitpanel element not collapsing properly

This commit is contained in:
rlx 2011-01-04 02:29:30 +00:00
parent 8796fe67d2
commit dcbfbe7e49

View file

@ -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', {