You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Steps to reproduce:
Modify the Examples.re file to start as not decorated (borderless) window.
Launch it esy '@examples' x examples and maximize (win+up) with aero snap
Actual Result:
The resized (maximized) window is bigger than the current monitor work area rect.
e.g. in a screen resolution 1366x768 with a work area rect of 1366x728 is not used to resize, instead the borderless maximized window is resized to 1382x744 which is even bigger than the monitor resolution, as shown in the following screen capture.
As you can see, the maximized window occupies even the space of the other monitor (which is arranged vertically), it is very noticeable if you have the taskbar transparent or disabled on secondary monitor.
Same issue as Oni2's Window borders on Windows resize weirdly and still have a cut-off in fullscreen onivim/oni2#1893
Expected Result:
Fits the monitor work area rect (the area excluding the taskbar).
Additional Information:
I hooked WH_CALLWNDPROCRET for detecting resizing using WM_WINDOWPOSCHANGED windows message and re-resized after the window has been maximized using SetWindowPos by detecting the monitor's work area rect which doesn't work either.
However, if it is resized to 1 pixel less than the work area rect height, it fits almost correctly with the exception that the 1 pixel gap between the window bottom border and the taskbar is present and visible as shown in the following snapshots.
The gap is visible, and might not be desireable by others, but IMHO it is better than occupying the taskbar space, and it doesn't occupying other monitor's space too.
The console (debugging console output) shows that it indeed resized to 1366x727 (exactly 1 pixel less in height).
I don't know if this workaround to kind of fix that issue might be suitable for this project, since I really don't know where that resizing overriding is ignoring the work area rect.
Notice that if it is less in height of the work area rect it respects the dimensions to adjust, otherwise, if height is the same or bigger than the work area rect, even this hook is overrided and re-resize is ignored. I don't know why.
These are the changes I did in order to achieve that workaround: vhanla@d19b9d1
Bare in mind I'm new to ReasonML and it doesn't consider fullscreen mode, which I ignore is supported though.
Search terms used:
maximize
The text was updated successfully, but these errors were encountered:
Just wanted to say thanks for the great investigation and detailed notes, as well as the proposed fix @vhanla !
I need to review it / test a bit and see how it integrates with some of the issues like (onivim/oni2#3071 and onivim/oni2#3063) - but really appreciate your help here 👍 Will be very useful when I dive into this!
Link to github repo:
Steps to reproduce:
Modify the Examples.re file to start as not decorated (borderless) window.
Launch it
esy '@examples' x examples
and maximize (win
+up
) with aero snapActual Result:
The resized (maximized) window is bigger than the current monitor work area rect.
e.g. in a screen resolution 1366x768 with a work area rect of 1366x728 is not used to resize, instead the borderless maximized window is resized to 1382x744 which is even bigger than the monitor resolution, as shown in the following screen capture.
As you can see, the maximized window occupies even the space of the other monitor (which is arranged vertically), it is very noticeable if you have the taskbar transparent or disabled on secondary monitor.
Same issue as Oni2's Window borders on Windows resize weirdly and still have a cut-off in fullscreen onivim/oni2#1893
Expected Result:
Fits the monitor work area rect (the area excluding the taskbar).
Additional Information:
I hooked WH_CALLWNDPROCRET for detecting resizing using WM_WINDOWPOSCHANGED windows message and re-resized after the window has been maximized using SetWindowPos by detecting the monitor's work area rect which doesn't work either.
However, if it is resized to 1 pixel less than the work area rect height, it fits almost correctly with the exception that the 1 pixel gap between the window bottom border and the taskbar is present and visible as shown in the following snapshots.
The gap is visible, and might not be desireable by others, but IMHO it is better than occupying the taskbar space, and it doesn't occupying other monitor's space too.
The console (debugging console output) shows that it indeed resized to 1366x727 (exactly 1 pixel less in height).
I don't know if this workaround to kind of fix that issue might be suitable for this project, since I really don't know where that resizing overriding is ignoring the work area rect.
Notice that if it is less in height of the work area rect it respects the dimensions to adjust, otherwise, if height is the same or bigger than the work area rect, even this hook is overrided and re-resize is ignored. I don't know why.
These are the changes I did in order to achieve that workaround: vhanla@d19b9d1
Bare in mind I'm new to ReasonML and it doesn't consider fullscreen mode, which I ignore is supported though.
maximize
The text was updated successfully, but these errors were encountered: