We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5433d3f commit 86ce480Copy full SHA for 86ce480
js/views/sliderView.js
@@ -60,7 +60,7 @@ ionic.views.Slider = ionic.views.View.inherit({
60
slidePos = new Array(slides.length);
61
62
// determine width of each slide
63
- width = container.getBoundingClientRect().width || container.offsetWidth;
+ width = container.offsetWidth || container.getBoundClientRect().width;
64
65
element.style.width = (slides.length * width) + 'px';
66
0 commit comments