fix SplitPanel CSS regression

This commit is contained in:
rolux 2014-09-02 13:23:06 +02:00
parent e582ee5fac
commit d5c2c7cc56

View file

@ -68,9 +68,9 @@ Ox.SplitPanel = function(options, self) {
}, element); }, element);
// top and bottom (horizontal) or left and right (vertical) // top and bottom (horizontal) or left and right (vertical)
self.edges.slice(2).forEach(function(edge) { self.edges.slice(2).forEach(function(edge) {
if (!element.element.css(edge)) { element.element.css(
element.element.css(edge, 0); edge, (parseInt(element.element.css(edge)) || 0) + 'px'
} );
}); });
if (element.collapsed) { if (element.collapsed) {
// left/right (horizontal) or top/bottom (vertical) // left/right (horizontal) or top/bottom (vertical)