Skip to content

Commit 86ce480

Browse files
committed
fix(sliderView): find width properly when element is transformed
Fixes #1313
1 parent 5433d3f commit 86ce480

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: js/views/sliderView.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ ionic.views.Slider = ionic.views.View.inherit({
6060
slidePos = new Array(slides.length);
6161

6262
// determine width of each slide
63-
width = container.getBoundingClientRect().width || container.offsetWidth;
63+
width = container.offsetWidth || container.getBoundClientRect().width;
6464

6565
element.style.width = (slides.length * width) + 'px';
6666

0 commit comments

Comments
 (0)