curtainsjs
curtainsjs copied to clipboard
autoResize disabled, but right after refresh, the curtain gets resized
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)
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,
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.
When I start the curtain with the developer tools, the curtain is too small.
Cheers.