Skip to content

Commit

Permalink
Add information about how to avoid margin jump-"bug"
Browse files Browse the repository at this point in the history
  • Loading branch information
kjetilsbl committed Feb 7, 2018
1 parent a095198 commit f3b6518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -228,7 +228,7 @@ All other props are applied to a container that is being resized. So it is possi

- initially opened Collapse elements will be statically rendered with no animation (see [#19](https://github.com/nkbt/react-collapse/pull/19))
- it is possible to override `overflow` and `height` styles for Collapse (see [#16](https://github.com/nkbt/react-collapse/pull/16)), and ReactCollapse may behave unexpectedly. Do it only when you definitely know you need it, otherwise, never override `overflow` and `height` styles.

- Due to the complexity of margins and their potentially collapsible nature, ReactCollapse does not support (vertical) margins on their children. It might lead to the animation "jumping" to its correct height at the end of expanding. To avoid this, use padding instead of margin. (see [#101](https://github.com/nkbt/react-collapse/issues/101))

## Migrating from v2 to v3

Expand Down

0 comments on commit f3b6518

Please sign in to comment.