I’m getting inconsistent window size on HTML5 build when High dpi option is turned on.
Attached is a minimal sample:
WindowSize.zip (208.1 KB)
Tested on Windows 10, Google Chrome (1.2.165 and 1.2.166 beta, same results):
html5 high dpi OFF: reported size is 1280x720
html5 high dpi ON: reported size is 1548x871 (which is approx 1.209x the original size)
Is this expected behavior? Scale mode is default: downscale fit.
Note that the GUI’s adjust reference has been disabled. There’s also different results in the background image inside the gui:
html5 high dpi OFF: the gui background shows exactly 1280x720 of the image only (but there appears to be some scaling going on)
html5 high dpi ON: the gui background shows more of the background, with no scaling whatsoever, which I think is the expected behavior when adjust reference is disabled?
Thoughts?
Use case is filling a gui with a seamless background, which involves cloning a small node to fill up the entire screen based on window size, so the node itself shouldn’t be resized. This used to worked fine on 1.2.163, then it got broken starting on 1.2.164 (when WINDOW_EVENT_RESIZED is not being fired anymore until an actual browser resize happens).