fix(sliderView): find width properly when element is transformed

Fixes #1313
This commit is contained in:
Andrew
2014-06-24 09:36:19 +09:00
parent 5433d3f84c
commit 86ce480696

View File

@@ -60,7 +60,7 @@ ionic.views.Slider = ionic.views.View.inherit({
slidePos = new Array(slides.length);
// determine width of each slide
width = container.getBoundingClientRect().width || container.offsetWidth;
width = container.offsetWidth || container.getBoundClientRect().width;
element.style.width = (slides.length * width) + 'px';