Skip to content

[P2][bug] Resizing the window leaves the new space black; content does not reflow #726

Closed

Description

@EVWorth

Reported from the installed app on Bazzite (Wayland, KDE), SQLPilot 1.1.0.

Expanding the window does not expand the interface. The existing content stays
at its old size and position, and the newly revealed area is black.

What is known

  • Linux, Wayland session, WebKitGTK webview
  • Reproduced by dragging the window larger; the black region is the area the
    window gained
  • Not observed in just dev-web, where the page is an ordinary browser tab and
    reflows normally — which points at the webview surface rather than at the
    app's CSS

Where to look first

The app's shell is #root { height: 100vh; width: 100vw } with overflow: hidden on the body, so a viewport that did update would reflow on its own.
Black rather than stretched or repeated content suggests the webview surface is
not being resized to match the window, so the compositor has nothing to draw in
the new region.

Candidates, roughly in order:

  1. WebKitGTK surface sizing under Wayland — known to need the webview to be
    told to resize on some versions, rather than following the GTK window.
  2. A Tauri window configuration issue: tauri.conf.json window options, or a
    fixed inner size.
  3. Something in the app holding a stale size — the panel group from
    react-resizable-panels stores pixel sizes, though that would not produce
    black.

Worth checking

  • Whether it also happens on X11 (run with GDK_BACKEND=x11) — if it does not,
    it is the Wayland surface path
  • Whether a WebKit repaint fixes it (resize, then trigger any re-render)
  • Whether the packaged build differs from npx tauri dev

Unverified by me: I cannot drive or observe the packaged window from here, so
everything above the "known" section is a hypothesis to test rather than a
diagnosis.

Activity

  1. added
    audit
    severity/p2
    kind/bug
    on Sep 22, 2026
  2. EVWorth commented on Oct 18, 2026

    @EVWorth
    OwnerAuthor

    Closing as fixed by #742, which shipped in 1.2.0. On Wayland it turns off WebKitGTK's DMABUF renderer before the webview starts (linux_webkit_env in src-tauri/src/lib.rs); that renderer was leaving the surface at its old size when the window grew.

    It hasn't been checked on the reporting machine. If the black area comes back, reopen this, and running with WEBKIT_DISABLE_DMABUF_RENDERER=0 (DMABUF back on) against the default should show whether it's the same cause.


    Generated by Claude Code

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

    area/cross-cuttingauditkind/bugseverity/p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions