Repository navigation
fix: add check in IsMaximized for non-WS_THICKFRAME windows - #26586
Conversation
There was a problem hiding this comment.
Great find! Let's add a test for this here to create a transparent window and then check isMaximized state before & after calling maximize()
08b5ed1 to
3b025e3
Compare
|
@mlaurencin looks like this accidentally caught a release commit :) rebasing against master should fix that |
0563b21 to
584a140
Compare
584a140 to
86f0d5c
Compare
|
@mlaurencin Can you rebase the PR on master? It should be able to fix the failing mac CI. |
86f0d5c to
12eba95
Compare
12eba95 to
4436027
Compare
|
Release Notes Persisted
|
|
/trop run backport-to 12-x-y, 11-x-y, 10-x-y |
|
/trop run backport-to 11-x-y,10-x-y |
|
The backport process for this PR has been manually initiated - |
|
The backport process for this PR has been manually initiated - |
|
I was unable to backport this PR to "11-x-y" cleanly; |
|
I was unable to backport this PR to "10-x-y" cleanly; |
|
@mlaurencin has manually backported this PR to "12-x-y", please check out #26772 |
Description of Change
Closes #25348
This PR allows for windows without the WS_THICKFRAME style to be properly checked when determining if they are maximized. Transparent windows fall under this category. Since windows without the WS_THICKFRAME style cannot be put in a maximized state, we simulate it by increasing the window to the size of the display. Previously, when a window without the WS_THICKFRAME style was "maximized" in this way, the IsMaximized check did not account for this workaround. Now IsMaximized checks for both cases involving WS_THICKFRAME.
(An additional criteria commented for maximization was also removed, since the implementation was removed at some point before this PR).
Checklist
npm testpassesRelease Notes
Notes: Fixed an issue where IsMaximized would incorrectly return false for some windows on Windows.