-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[slidebox] slider-slides has a wrong width depending on the transition between 2 views #1313
Comments
Hey there, @ajoslin, any updates on this issue? thanks |
with the latest beta 7, the bug is even more present with the |
I'll check this out. |
Can you check it out with the latest commit? The problem it was using getBoundingClientRect() to calculate the width, which takes scale into account when measuring the width. |
Great :) I'll try it out tonight! |
I confirm, it is fixed. Thank you @ajoslin! |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Hey guys,
The way that the slidebox witdh is computed is not working regarding the transition. In my transition, I am using scale(). The width is computed before the end of the transition (before scale=1), so the final width is wrong.
here is the codepen to illustrate the issue http://codepen.io/anon/pen/zGDwC, on the first view there is a slider with 2 slides, click the Facts button to go on the second view, click on the back button, you will be able to see the beginning of the 2nd slide now.
ps: if I comment out the scale code in the transition, everything works fine.
any thoughts?
thanks for your help
The text was updated successfully, but these errors were encountered: