Skip to content

bug(desktop): maximizing from a restored window on Windows leaves the renderer at the old size — unpainted area shows as a white edge #3416

Closed

Description

@me2seeks

What happened

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 BrowserWindow backgroundColor (#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

  1. On Windows 11, launch Maka Desktop so the window opens restored/non-maximized (default saved bounds are 1240×820).
  2. Double-click the titlebar drag region to maximize (same result via the native maximize button).
  3. 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

  1. added
    bug
    help wanted
    on Aug 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bughelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions