mattermost / desktop

Mattermost Desktop application for Windows, Mac and Linux
Apache License 2.0
2.03k stars 830 forks source link

[MM-59412] Reinstate the resize listener for Windows and the exception for willResize #3098

Closed devinbinnie closed 4 months ago

devinbinnie commented 4 months ago

Summary

On Windows, removing the window from snapped to unsnapped using the Windows+Arrow Keys, or when moving between screens using Shift+Windows+Arrow Keys, the BrowserViews inside would not resize correctly.

This PR brings back the onResize handler for Windows (which I believe was removed to try and improve performance) but includes an exception that if onWillResize is being called simultaneously it won't resize the window twice.

Ticket Link

https://mattermost.atlassian.net/browse/MM-59412

Fixed an issue where snapping the window on Windows would sometimes cause the inner BrowserView not to resize