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);
// 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)