Dynamically change window size in NPM


Currently I can only seem to get the initial new stage call with window and height to change the stage element

I tried using js and found this Browser.window.resizeTo(stageWidth,stageHeight); but it doesn’t seem to do anything in chrome.

Thanks for reading this and any insight you might have, Cheers.


Does it work if you use 0, 0 as the width and height? Be careful though that you put the element inside a fixed size element, otherwise it could run into an infinite resize loop (where the content resizes, which increases the parent size, which results in another resize, so on)