Skip to content

Commit

Permalink
Add information about how to avoid margin "bug"
Browse files Browse the repository at this point in the history
Documents nkbt#101
  • Loading branch information
Kristofer Selbekk committed Oct 4, 2016
1 parent 425a7fb commit b1a3a57
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ 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)
- it is possible to override `overflow` and `height` styles for Collapse (see #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)



## Development and testing
Expand Down

0 comments on commit b1a3a57

Please sign in to comment.