diff --git a/source/Ox.UI/js/Panel/SplitPanel.js b/source/Ox.UI/js/Panel/SplitPanel.js index 3be3bf13..8115f96f 100644 --- a/source/Ox.UI/js/Panel/SplitPanel.js +++ b/source/Ox.UI/js/Panel/SplitPanel.js @@ -68,9 +68,9 @@ Ox.SplitPanel = function(options, self) { }, element); // top and bottom (horizontal) or left and right (vertical) self.edges.slice(2).forEach(function(edge) { - if (!element.element.css(edge)) { - element.element.css(edge, 0); - } + element.element.css( + edge, (parseInt(element.element.css(edge)) || 0) + 'px' + ); }); if (element.collapsed) { // left/right (horizontal) or top/bottom (vertical)