-
Notifications
You must be signed in to change notification settings - Fork 704
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
<Html /> becomes misaligned when placed in a grid #428
Comments
Please provide a minimal reproduction of the issue, there's too much noise in this to understand filter down the issue. |
Updated sandbox - https://codesandbox.io/s/html-in-a-grid-system-o4grv?file=/src/styles.css Apologies for accidentally closing the issue |
This is probably an issue with the These props have come in through contributions and I find a lot of the math not incredibly straight forward. If you need keep the |
I've opened a PR on three.js, attempting to fix an equivalent issue in THREE.CSS3DRenderer. I believe the same change could be applied to |
🎉 This issue has been resolved in version 9.88.15 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Had to revert in #1724. |
Any Update on this? I updated to the latest version but it still happening. I noticed that after resizing, when the HTML element becomes misalign, if i navigate to another tab and come back to my project tab, the HTML fixes itself. |
Thank you for contributing! We’re marking this issue as stale as a gentle reminder to revisit it and give it the attention it needs to move forward. Any activity, like adding an update or comment, will automatically remove the stale label so it stays on our radar. Feel free to reach out on Discord if you need support or feedback from the community. This issue will close automatically soon if there’s no further activity. Thank you for understanding and for being part of the project! |
We’re closing this issue to keep our project manageable and make room for other active work, but we truly appreciate your effort and contribution. If you’d like to continue working on this, please feel free to re-open it or reach out on Discord — our community is always ready to support you. Thanks again for helping us stay organized and for understanding our approach! |
three
version: 0.129.0@react-three/fiber
version: 6.2.2@react-three/drei
version: 5.3.0Problem description:
When I place a model inside a CSS grid, and I use the grid system to resize and place the item, the items within the Html tags are no longer aligned with the surface of the model.
When the page is resized, the items in the HTML tag also jump around.
Relevant code:
Here is the codesandbox with the code: https://codesandbox.io/s/mixing-html-and-webgl-w-occlusion-forked-ct4fl?file
This only seems to occur when the initial grid or row is not 1.
For example, this code works
However, this code does not
Please let me know if you are not meant to use containers with CSS to place react-three-fiber models
The text was updated successfully, but these errors were encountered: