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]: Popups shift by one pixel while they open or close at fractional display scaling #34710
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
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.
Open the model picker in the composer, then close it with Escape or by clicking outside.
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%.
Activity
CanePlayz commentedon Nov 18, 2026
Fixed by #37661.