fix 1 more typo in SplitPanel
This commit is contained in:
parent
2666b13ec1
commit
1ae98892cf
1 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ 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) {
|
||||||
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;
|
return element.element;
|
||||||
});
|
});
|
||||||
|
@ -224,7 +224,7 @@ Ox.SplitPanel = function(options, self) {
|
||||||
var index = Ox.isNumber(id) ? id : getIndexById(id);
|
var index = Ox.isNumber(id) ? id : getIndexById(id);
|
||||||
// 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) {
|
||||||
element.css(edge, (parseInt(element.css(self.edges[2])) || 0) + 'px');
|
element.css(edge, (parseInt(element.css(edge)) || 0) + 'px');
|
||||||
});
|
});
|
||||||
that.$elements[index] = element;
|
that.$elements[index] = element;
|
||||||
self.options.elements[index].element.replaceWith(
|
self.options.elements[index].element.replaceWith(
|
||||||
|
|
Loading…
Reference in a new issue