Giter Club home page Giter Club logo

Comments (9)

nkbt avatar nkbt commented on August 17, 2024

from react-collapse.

ApurvaB avatar ApurvaB commented on August 17, 2024

Hi , Is this issue fixed?

from react-collapse.

nkbt avatar nkbt commented on August 17, 2024

Sorry for holding with this issue.

When container has display: flex height is calculated incorrectly and every step of animation gets "instant height" toggled from 0 to real height. That is not an easy thing to solve - could not get it fixed right away unfortunately and flied away to ReactConf. I am now coming back so hopefully have more time to look at it.

As a quick solution I would suggest to avoid setting flex to Collapse element itself. Set it to either its parent or child node like in here: http://codepen.io/nkbt/pen/ZWzpYN?editors=101
I understand that it might not be a solution in some cases, but "fixing" Collapse behaviour for flex element might not be possible (for current implementation of Collapse).

from react-collapse.

nathanmarks avatar nathanmarks commented on August 17, 2024

@nkbt I ended up getting this error using react-height without react-collapse. Only flex container was numerous levels up.

from react-collapse.

nkbt avatar nkbt commented on August 17, 2024

Yeah, height is not being properly determined on flex container.

Sorry everyone for the delay with fixing this issue (and other ones). I was working heavily on a backend/devops and did not do any UI work for last ~7 months. Now I am doing UI again and will be able to work on this (well, will have to anyway, as all these UI libs are going to be heavily used). Thanks for your patience and help!

from react-collapse.

nathanmarks avatar nathanmarks commented on August 17, 2024

@nkbt No worries! I appreciate the work -- it has helped me figure out my own basic solution that seems to be working (so far 😄 ) for my current use case: https://github.com/nathanmarks/material-ui/blob/stepper-updates/src/internal/ExpandTransitionChild.js

from react-collapse.

nkbt avatar nkbt commented on August 17, 2024

Cool 👌

from react-collapse.

nkbt avatar nkbt commented on August 17, 2024

Closing, most likely will be fixed by #72
Hard to tell since I cannot reproduce this anymore

from react-collapse.

nkbt avatar nkbt commented on August 17, 2024

Will add an example case...

from react-collapse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.