curtainsjs icon indicating copy to clipboard operation
curtainsjs copied to clipboard

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

Open profispojka opened this issue 2 years ago • 2 comments

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)

profispojka avatar Dec 19 '21 20:12 profispojka

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,

martinlaxenaire avatar Dec 20 '21 15:12 martinlaxenaire

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.

profispojka avatar Dec 27 '21 14:12 profispojka