fix a bug in split panel, regarding the size of a second element in relation to a collapsed third element

This commit is contained in:
rlx 2011-11-02 08:22:55 +00:00
parent 90eaf97fec
commit 7747255ab8
2 changed files with 3 additions and 3 deletions

View file

@ -14,9 +14,9 @@ Ox.JQueryElement <function> Wrapper for jQuery
Ox.JQueryElement = function($element) { Ox.JQueryElement = function($element) {
var that = this; var that = this;
//@ id <number> Unique id //@ id <number> Unique id
that.id = Ox.uid(); that.id = Ox.uid(); // fixme: rename to oxid!
//@ ox <string> OxJS version //@ ox <string> OxJS version
that.ox = Ox.VERSION; that.ox = Ox.VERSION; // fixme: remove!
//@ $element <object> The jQuery-wrapped DOM element //@ $element <object> The jQuery-wrapped DOM element
that.$element = $element.data({ that.$element = $element.data({
oxid: that.id oxid: that.id

View file

@ -142,7 +142,7 @@ Ox.SplitPanel = function(options, self) {
css[self.edges[0]] = 'auto'; // fixme: why is this needed? css[self.edges[0]] = 'auto'; // fixme: why is this needed?
} }
css[self.edges[1]] = ( css[self.edges[1]] = (
self.length == 3 ? getVisibleSize(self.options.elements[2]) : 0 self.length == 3 ? getSize(self.options.elements[2]) : 0
) + 'px'; ) + 'px';
} else { } else {
if (element.size == 'auto') { if (element.size == 'auto') {