update SlidePanel
This commit is contained in:
parent
87771969b0
commit
cdc95737e1
1 changed files with 4 additions and 2 deletions
|
@ -35,7 +35,7 @@ Ox.SlidePanel = function(options, self) {
|
||||||
return {
|
return {
|
||||||
left: -Ox.getIndexById(self.options.elements, self.options.selected)
|
left: -Ox.getIndexById(self.options.elements, self.options.selected)
|
||||||
* self.options.size + 'px',
|
* self.options.size + 'px',
|
||||||
width: self.options.size + 'px'
|
width: self.elements * self.options.size + 'px'
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -47,7 +47,9 @@ Ox.SlidePanel = function(options, self) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function selectElement(id) {
|
function selectElement(id) {
|
||||||
self.$content.animate(getContentCSS(), self.options.animate);
|
self.$content.animate({
|
||||||
|
left: getContentCSS().left,
|
||||||
|
}, self.options.animate);
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateElements() {
|
function updateElements() {
|
||||||
|
|
Loading…
Reference in a new issue