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
{{ message }}
Repository navigation
bug(desktop): maximizing from a restored window on Windows leaves the renderer at the old size — unpainted area shows as a white edge #3416
On Windows, when the Maka desktop window starts small (restored) and the user then maximizes it (double-click on the titlebar drag region), the renderer viewport does not grow with the window. The app content keeps the pre-maximize size, and the rest of the window is never painted — it shows the BrowserWindowbackgroundColor (#ffffff in light mode) as a large white band along the right and bottom edges of the screen.
Observed: after double-click-maximizing on a 1920×1080 display, the sidebar + chat column occupy only roughly the old restored window size (~1240×820) anchored top-left; everything to the right of and below that region is blank white. The chat scrollbar also sits at the old viewport edge.
Expected: the renderer reflows and paints the full maximized window immediately.
How to reproduce
On Windows 11, launch Maka Desktop so the window opens restored/non-maximized (default saved bounds are 1240×820).
Double-click the titlebar drag region to maximize (same result via the native maximize button).
The window frame maximizes, but the web contents stay at the pre-maximize size; the unpainted remainder shows as a white edge/band (right + bottom).
Environment
Maka version or commit: v0.1.11 (packaged)
OS and version: Windows 11
Surface: Desktop
Logs, screenshots, or additional context
Screenshot (light mode): maximized window where app content stops at the old viewport size; white unpainted area fills the rest of the screen.
Notes from source inspection (not yet root-caused upstream):
Main window uses titleBarStyle: 'hidden' + titleBarOverlay on Windows (apps/desktop/src/main/main-window.ts, Electron 43.2.0).
The renderer layout is fully fluid (height: 100dvh; width: 100% in shell-layout.css; no JS reads innerWidth/innerHeight), so the stale size is not an app CSS issue — the webContents/compositor appears not to pick up the new size on this maximize path, leaving the window background color exposed.
Possibly related upstream: electron/electron#49203 ("Maximized frameless window has 2px of not rendered area at the bottom") and Electron's tech talk on window resize behavior (stale-frame/gutter fixes landed in Electron 39.2.6+; this still reproduces on 43.2.0, so the maximize transition may be a distinct path).
Candidate mitigations to evaluate: force a geometry sync on the maximize event (e.g. re-apply getBounds() or a 1px toggle), and/or check whether it reproduces without titleBarOverlay.
Activity