Parameters for window.setMaximizeButtonRegion.
Register the custom maximize button rectangle on the main window to enable Windows 11 Snap layouts. The rectangle uses page CSS pixels and scales with devicePixelRatio. It replaces any previous rectangle; omitting region or passing non-positive dimensions clears the registration. When the window is frameless, resizable, and not fullscreen, the host reports this area as the system maximize button while forwarding mouse events to the page (preserving CSS hover styles and click handlers). On Windows 10 or in other states, the area behaves as normal page content. Re-register whenever button layout moves or devicePixelRatio changes. Page reload or navigation clears this registration. Main window only: fails with NOT_SUPPORTED from popups, in panel mode, or with NOT_FOUND without a window.
Parameters for
window.setMaximizeButtonRegion. Register the custom maximize button rectangle on the main window to enable Windows 11 Snap layouts. The rectangle uses page CSS pixels and scales withdevicePixelRatio. It replaces any previous rectangle; omittingregionor passing non-positive dimensions clears the registration. When the window is frameless, resizable, and not fullscreen, the host reports this area as the system maximize button while forwarding mouse events to the page (preserving CSS hover styles and click handlers). On Windows 10 or in other states, the area behaves as normal page content. Re-register whenever button layout moves ordevicePixelRatiochanges. Page reload or navigation clears this registration. Main window only: fails withNOT_SUPPORTEDfrom popups, in panel mode, or withNOT_FOUNDwithout a window.