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

Fix hidden resize #1

Open
wants to merge 3 commits into
base: format-code
Choose a base branch
from
Open

Fix hidden resize #1

wants to merge 3 commits into from

Conversation

steinn
Copy link

@steinn steinn commented May 17, 2022

No description provided.

steinn added 3 commits May 17, 2022 10:59
if you hide the canvas by using World.hide() and then resize the
browser the world is resized with width and height 0 because of
'display: none'.

fixed this by resizing the world after calling World.show().

removed the resize event listener to allow library users to handle the
resize event by them self and changed the resizeWorld function to
resize the world instead of registering the resize callback.
@steinn steinn changed the base branch from main to format-code May 17, 2022 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant