<p dir="auto">On Windows 8.1, with a high DPI screen, min-width/min-height behave wrongly - the value is multiplied by the current DPI over standard DPI, resolving in higher actual values.</p>
<p dir="auto">For example, when the min-width is set to 1000, the system has a resolution width 2560, but Electron renders as if the width of the screen is around 1330 (so that things do not appear to small), the actual window width based on min-width resolves in around 1500px, but the actual window comes up wider than the screen because the width is already re-calculated according to this.</p>
<p dir="auto">The point is, min-width/min-height shouldn't be re-calculated according to DPI since  width/height of the window already are.</p>
<p dir="auto">Labels: windows, bug</p>
<p dir="auto">I'm seeing two problems with the min-width and min-height properties.</p>
<p dir="auto">First, when opening a window that includes the native window chrome, the window width and height that is set when creating the window includes the width and height of the native window chrome.  So if I set width to 800px and height to 600px, the entire window is 800 x 600.  However, if we also set min-width to 800px and min-height to 600px, these measurements seem to exclude the native chrome.  So if I try to resize it at all (or even to drag the window on Windows), it will resize itself so that the contents (excluding the chrome) are 800 x 600.  The window will get bigger by the size of the chrome, which is the height of the header on OSX and about 15px x 38px on Windows.</p>
<p dir="auto">Secondly, on Windows only, if you have auto-scaling turned on, this is being applied once when opening the BrowserWindow with a specified width and height, but is being applied a second time when evaluating min-width and min height. For example, my PC has a screen resolution of 3200 x 1800, and the recommended scaling is 200%.  With these settings, if we create a browser window as 400px wide and 300px high, then it's actually created as 800 x 600, which is what I'd expect with 200% scaling.  However, it seems that if I also set the min-width to 400 and the min-height to 300, and drag or attempt to resize the window, then the minimum dimensions are evaluated, and doubled again, so I end up with a window that jumps to twice the expected size (1626 x 1271).  While I can get around this by turning off auto-scaling (setting scaling to 100%), because the recommended setting for my resolution is to have this turned on, I would expect that a lot of Windows users with high-resolution monitors would run into a similar problem.</p>
<p dir="auto">Thank you.</p>