diff --git a/source/Ox.UI/js/Panel/SplitPanel.js b/source/Ox.UI/js/Panel/SplitPanel.js index b0057376..a11e3d2a 100644 --- a/source/Ox.UI/js/Panel/SplitPanel.js +++ b/source/Ox.UI/js/Panel/SplitPanel.js @@ -61,7 +61,7 @@ Ox.SplitPanel = function(options, self) { }, element); // top and bottom (horizontal) or left and right (vertical) self.edges.slice(2).forEach(function(edge) { - element.element.css(edge, (parseInt(element.element.css(edge)) || 0) + 'px') + element.element.css(edge, (parseInt(element.element.css(edge)) || 0) + 'px'); }); return element.element; }); @@ -224,7 +224,7 @@ Ox.SplitPanel = function(options, self) { var index = Ox.isNumber(id) ? id : getIndexById(id); // top and bottom (horizontal) or left and right (vertical) self.edges.slice(2).forEach(function(edge) { - element.css(edge, (parseInt(element.css(self.edges[2])) || 0) + 'px'); + element.css(edge, (parseInt(element.css(edge)) || 0) + 'px'); }); that.$elements[index] = element; self.options.elements[index].element.replaceWith(