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:
parent
90eaf97fec
commit
7747255ab8
2 changed files with 3 additions and 3 deletions
|
@ -14,9 +14,9 @@ Ox.JQueryElement <function> Wrapper for jQuery
|
|||
Ox.JQueryElement = function($element) {
|
||||
var that = this;
|
||||
//@ id <number> Unique id
|
||||
that.id = Ox.uid();
|
||||
that.id = Ox.uid(); // fixme: rename to oxid!
|
||||
//@ ox <string> OxJS version
|
||||
that.ox = Ox.VERSION;
|
||||
that.ox = Ox.VERSION; // fixme: remove!
|
||||
//@ $element <object> The jQuery-wrapped DOM element
|
||||
that.$element = $element.data({
|
||||
oxid: that.id
|
||||
|
|
|
@ -142,7 +142,7 @@ Ox.SplitPanel = function(options, self) {
|
|||
css[self.edges[0]] = 'auto'; // fixme: why is this needed?
|
||||
}
|
||||
css[self.edges[1]] = (
|
||||
self.length == 3 ? getVisibleSize(self.options.elements[2]) : 0
|
||||
self.length == 3 ? getSize(self.options.elements[2]) : 0
|
||||
) + 'px';
|
||||
} else {
|
||||
if (element.size == 'auto') {
|
||||
|
|
Loading…
Reference in a new issue