mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(sliderView): "getBoundClientRect" typo
This commit is contained in:
@@ -60,7 +60,7 @@ ionic.views.Slider = ionic.views.View.inherit({
|
||||
slidePos = new Array(slides.length);
|
||||
|
||||
// determine width of each slide
|
||||
width = container.offsetWidth || container.getBoundClientRect().width;
|
||||
width = container.offsetWidth || container.getBoundingClientRect().width;
|
||||
|
||||
element.style.width = (slides.length * width) + 'px';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user