Skip to content

Initial bounding box calculation are wrong when using nested boxes #56

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

Closed
saitonakamura opened this issue Aug 13, 2021 · 0 comments · Fixed by #57
Closed

Initial bounding box calculation are wrong when using nested boxes #56

saitonakamura opened this issue Aug 13, 2021 · 0 comments · Fixed by #57

Comments

@saitonakamura
Copy link
Collaborator

I used a message and codesandbox from a discord server
https://discord.com/channels/740090768164651008/745777196911689748/860103131593310238
https://codesandbox.io/s/playing-with-react-three-flex-forked-05wo8?file=/src/App.js

The problem is that initial bounding box for a group that contains other boxes is reported incorrectly (width should be 200, but it's 100). This probably has to do with that until flex is calculated first time, boxes inside other boxes positioned in the same place

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

Successfully merging a pull request may close this issue.

1 participant