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

autoResize disabled, but right after refresh, the curtain gets resized #99

Open
profispojka opened this issue Dec 19, 2021 · 2 comments

Comments

@profispojka
Copy link

Describe the bug
autoResize disabled, but right after refresh, the curtain gets resized

Expected behavior
the curtain should on start as 100% of canvas.

Desktop (please complete the following information):

  • Device: PC
  • OS: windows 10
  • Browser Version 1.33.106 Chromium: 96.0.4664.110 (Official Build) (64-bit)
@martinlaxenaire
Copy link
Owner

Hi @profispojka,

I'm not sure to understand your problem here, but just in case: the resize handler is indeed called once during init to correctly set the sizes of the canvas element and init everything. This should not call the onAfterResize callback tho.

Cheers,

@profispojka
Copy link
Author

Hi. You can see there the problem with the curtain resize at the start. When I start the page without developer tools, the curtain has the correct size.
image
When I start the curtain with the developer tools, the curtain is too small.
image
Cheers.

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

No branches or pull requests

2 participants