Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Padding and border on the collapsing target lead to snapping on show-transition start or hide-transition end. #6

Open
ghost opened this issue Sep 15, 2014 · 1 comment

Comments

@ghost
Copy link

ghost commented Sep 15, 2014

On the transition calcSize() is interpreted as the target's inner height/width which is just valid if there's neither a border nor a padding.

Also since .core-collapse-closed is not displayed, the margin, padding, border should be covered in the transition too.

@justinfreitag-zz
Copy link

From core-collapse.html

core-collapse adjusts the height/width of the collapsible element to show/hide the content. So avoid putting padding/margin/border on the collapsible directly, and instead put a div inside and style that.

The component plays nice if you follow this

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants