Skip to content

[Bug]: Popups shift by one pixel while they open or close at fractional display scaling #34710

Closed

Description

@CanePlayz

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. On Windows, set display scaling to 110%. Any non-integer device pixel ratio reproduces it. 100% can too, when a popup lands on a half pixel.
  2. Open the model picker in the composer, then close it with Escape or by clicking outside.
  3. Watch the provider icon rail while the popup opens and closes.

Expected behavior

The popup fades and scales as one piece. Its content doesn't move relative to the rest of the popup.

Actual behavior

While the open or close transition runs, the star and Claude icons in the provider rail sit one device pixel lower than the rest of the popup. They snap back when the transition ends. The result is a visible hop at the end of opening and at the start of closing.

Measured frame by frame in the desktop nightly at 110%: in the first frame of each of four close transitions, the star icon moved from (300.66, 284.12) to (301.69, 285.11) and the Claude icon by (+1.05, +0.90). The model names in the same frame moved by (−0.18, −0.02). The values were identical across all four transitions.

The effect is more easily observable in the PR at #34711.

1-nightly-110-percent.mp4

Cause

The popups use transition-[scale,opacity] with data-starting-style:scale-98 / data-ending-style:scale-98. While that transition runs, Chromium composites the popup on its own layer and places that layer at its exact fractional position: Chromium pixel-snaps rectilinear translations, but not scales. At rest, the popup is painted with its content snapped to whole device pixels. Each switch between the two modes moves the content by up to one device pixel.

An integer device pixel ratio hides it. The same app on a Surface at 200% shows no jump, and starting the desktop app with --force-device-scale-factor=2 on the affected machine makes the jump disappear.

The same applies to the other popups with this transition: tooltip, preview card and toast.

Impact

Cosmetic issue

Version or commit

Desktop nightly 0.1.10 (2026-11-12); also reproduced on main @ 7462f23 with vp run dev

Environment

Windows 11 (build 29704), 2560×1440 at 110% scaling, NVIDIA RTX 3070, desktop app and Chrome. Not reproducible on a Surface at 2880×1920 and 200%.

Workaround

Only an integer device pixel ratio.

Activity

  1. CanePlayz commented on Nov 18, 2026

    @CanePlayz
    Author

    Fixed by #37661.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions