Skip to content
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

Resize scene canvas and text renderers with container div #1190

Merged
merged 1 commit into from
Jul 19, 2023

Conversation

falkoschindler
Copy link
Contributor

@falkoschindler falkoschindler commented Jul 18, 2023

This PR implements feature request #1163: It resizes the canvas and text renderers of a ui.scene automatically to match the size of its container div. This allows for using layout classes like w-full or h-64 on the scene element.

Most of the code changes convert the local renderer objects into component members, so that a new resize method can access them whenever the window triggers a "resize" event.

@falkoschindler falkoschindler added the enhancement New feature or request label Jul 18, 2023
Copy link
Member

@rodja rodja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🏁

@rodja rodja added this to the 1.3.5 milestone Jul 19, 2023
@falkoschindler falkoschindler merged commit ddbd690 into main Jul 19, 2023
@falkoschindler falkoschindler deleted the resize_scene branch July 19, 2023 05:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants