-
Notifications
You must be signed in to change notification settings - Fork 847
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows Client appears not to Size Main Window Client Region Appropriately on Windows 10 across monitors of different DPI #357
Comments
Attached manifest also shown here for discussion:
|
The actual problem, if the issue didn't make it clear, is easier to see with a screenshot: This also could be an issue where the top level window needs to cause a CSS layout reflow, and this reflow does not occur when the window first opens. An electron fix that causes a reflow of the CSS at startup, once the window is restored to its saved (maximized) initial position, might also be needed. Currently to work around it I resize the window (restore from maximized to non-maximized, then re-maximize) and that was enough in mattermost 1.x. In mattermost 3.x, that workaround no longer works, and I have to resort to a custom manifest, PLUS the resize hack. |
This bug might be an upstream bug in Electron. If anyone knows if it's already a known problem on Electron not properly working in a Windows 10 per monitor DPI aware system, with multiple monitors, this could be closed and just linked to upstream Electron issues. If working around it by shipping a manifest with the product could be useful, I'm happy to help contribute one. |
As electron/electron#5429, it seems that per moniter DPI awareness is not supported in Electron. If the workaround by manifest would work fine, we can discuss it. gif is very helpful for testers and readers to understand exact behavior. And just for reference, would you inspect DOM? Probably webview is correctly expanded, but the rendered region is incorrect. |
Hey @wpostma, Desktop app v3.5 had some improvements for high DPI systems, including Windows 10. The fix in question was for something else than reported here, but I'm wondering if it helped at all. Would you like to try downloading the newest version and see if it helps resolve any of the issues you reported? |
Tested works great now! Can close this
…On Wed, Dec 14, 2016 at 10:29 PM Jason Blais ***@***.***> wrote:
Hey @wpostma <https://github.com/wpostma>,
Desktop app v3.5 had some improvements for high DPI systems, including
Windows 10. The fix in question was for something else than reported here,
but I'm wondering if it helped at all.
Would you like to try downloading the newest version
<https://about.mattermost.com/download/#mattermostApps> and see if it
helps resolve any of the issues you reported?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#357 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABv5_o6T84RwcPtwJnjs-BCACFn1EMBgks5rILQIgaJpZM4KnYlv>
.
|
Glad to hear! |
I could also confirm that the issue doesn't reproduce with v3.5. |
I confirm (by marking "x" in the [ ] below):
Summary
The mattermost desktop windows application does not size its content correctly, on Windows 10 systems, with multiple monitors, and each monitor set to a different DPI scale.
I am a Windows developer, and can perhaps help you with what seems to be an Electron/native wrapper top level window size and content alignment issue in the Mattermost windows desktop app.
Steps to reproduce
Using mattermost desktop 3.x:
Expected behavior
On both 96 dpi (normal) and non 96 dpi (high dpi) systems, with both single monitors, and multiple monitors, in Windows 10, the content of the main window should be sized to fit the frame of the mattermost desktop window.
Note that Windows 10 supports different DPI values per monitor. The bug being reported may be an effect of per-monitor-dpi-awareness settings in the application manifest for mattermost.exe.
Observed behavior
Works on 96 dpi and single monitor high dpi systems. On non 96 dpi (high dpi) multi-monitor systems in Windows 10, the content of the main window is not properly sized to fit the frame of the mattermost desktop window.
The behaviour of desktop app 3.4.1 is actually worse than version 1.x of the desktop app.
Possible fixes
I am studying but I suspect it has to do with manifests. I am attaching an external manifest file that I am using to try to figure out what settings make the app "just work" on windows 10 multi monitor systems, with a mix of various DPI settings per monitor.
The Mattermost.manifest file should be placed in the same directory as mattermost.exe.
Mattermost-custom-manifest.zip
The attached file makes the behaviour at least as good as 1.x, and is much improved for me.
The text was updated successfully, but these errors were encountered: