fix 1 more typo in SplitPanel

This commit is contained in:
rolux 2014-01-17 11:23:22 +00:00
parent 2666b13ec1
commit 1ae98892cf

View file

@ -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(