From d5c2c7cc5621b69f39b85e722a611d4c69ef1bad Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 2 Sep 2014 13:23:06 +0200 Subject: [PATCH] fix SplitPanel CSS regression --- source/Ox.UI/js/Panel/SplitPanel.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)