Problem Description
I use NWjs.WindowWidth - WindowWidth to calculate the width of a window border so I can properly resize a window. Same for height. This has worked fine for all of my projects. However, if I set my project's window size to 1920x1080 or higher (my screen's resolution), this expression returns the wrong numbers.
It looks like the window is automatically resized if the game is launched at a resolution that matches or exceeds the device's screen resolution. This might be part of the problem somehow.
Attach a Capx
https://dl.dropboxusercontent.com/u/105 ... e_Bug.capx
Description of Capx
Calculates the size of the window borders and prints them out to a text object.
Steps to Reproduce Bug
- Preview the layout. Note the border sizes printed to the text object.
- Close the window.
- Set the window size in the project properties your device's screen resolution or higher.
- Preview the layout again. Note the border sizes are not the same as they were, and the window size is not exactly what you set it to.
Observed Result
Border size results are wrong and window is resized.
Expected Result
Border size results should be the same as when you first previewed the layout.
Affected Browsers
Operating System and Service Pack
Windows 10
Construct 2 Version ID
211