Responsive canvas bugs resize()

Hello,

I have a canvas that changes it’s height according to the window. engine.resize() is running when you resize the window. However the calculated height by engine.resize() is becoming larger every iteration.

Is this expected so one should always try to keep the canvas the same aspect-ratio? Or am I doing something wrong with a canvas that’s adjusting its height?

Hello! Are you able to share your project or a minimal reproduction with us?

We fixed it by keeping the aspect ratio the same for now. If noone experienced this beforehand and found a solution too bad, but I don’t think I’ll invest the time for a reproduction. :frowning:

feels like a combination of css and our canvas resizing method. But impossible to know without a reproduction. I’m happy you found a solution :slight_smile: