Profiles can only present a normal window: no maximized geometry when the declared screen is smaller than the display
Environment: ShardBrowser Launcher 2.1.3, engine build 1 (Chromium 157.0.8103.39), Windows 11 host with a 5120×1440 display at DPR 1, Windows presets with a declared 1920×1080 screen (avail 1920×1032), window block outer 1920×1031. Reference = stock Google Chrome 157.0.8103.39 on the same host.
Summary: a profile can only present the geometry of a normal window stretched over the work area. The window most people browse in, a maximized one, has a different and very regular geometry that a page can read from screenX/Y, outer* and inner*. Maximizing the real window is not an option when the declared screen is smaller than the host display: the viewport would become 5120 px wide.
Measured:
screenX, screenY |
outerWidth × outerHeight |
innerWidth × innerHeight |
|
|---|---|---|---|
| Stock Chrome, maximized (avail 5120×1392) | 0, 0 | 5120 × 1392 (= avail) | 5120 × 1305 (width = outer, height = outer − 87) |
| Stock Chrome, normal window | 100, 80 | 1400 × 900 | 1384 × 805 (outer − 16, outer − 95) |
| ShardX profile (declared avail 1920×1032) | 0, 0 | 1920 × 1031 | 1904 × 936 (normal-window borders) |
So the profile reads as a non-maximized window resized by hand to exactly the screen width, with an outer height one pixel short of the work area (the residue noted in #67).
Expected: an option (per profile, or in the window block) for the engine to present a maximized window within the declared screen: screenX/Y = availLeft/availTop, outerWidth × outerHeight = availWidth × availHeight, innerWidth = outerWidth, innerHeight = outerHeight minus the browser chrome, with the real window sized so that the viewport matches, the way the launcher already places the normal window inside the declared screen.
in v2.1.4