-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
Collapse has a jumpy transition when the collapsing element has padding #12093
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
Comments
There's no way around this because of the global |
The height is being increased/decreased via JS animation, you can calculate the paddingTop and paddingBottom values and increase/decrease those with the height. This is a very, very annoying bug. |
putting a div around that element and collapsing that instead fixes that in most cases, but you could solve this issue really easy by just using .css( "height" ) rather than .height(). |
@econic Thanks for the div suggestion. I was having this issue, removed the padding from the collapse div and put a new div around my content with the padding. Works perfect. |
Tested on OSX Mavericks
Reduced test case:
http://jsfiddle.net/q8D56/1/
The obvious workaround is give the padding to a child element of the collapse target. This seems a bit silly that it's necessary, though.
The text was updated successfully, but these errors were encountered: