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
fix(ui): keep status readouts from resizing the map - #3650
Keep status readouts inside a fixed, clipped strip and float their scrollbar over the row. The other scrolling toolbars keep their existing scrollbar placement.
With Windows system-font metrics, the solid scrollbar introduced in #3627 could expand the status row's content. A native Windows trace shows the map's bottom edge moving from y=516 to y=517 on the same wheel step that replaces the cached GPU frame, with the map revision and source/tile generations unchanged. This unnecessary resize broke frame reuse during flat and tilted navigation.
The regression drives the real app frame, uses a taller font to reproduce the layout condition on Linux, moves the pointer onto the map, and checks that its rectangle stays unchanged. The existing GPU frame-reuse assertions are unchanged.
This reaches the desktop and browser status bar. The phone uses its own chrome. This changes layout only: ribbon, shortcuts, command search, command-line, Python, Assistant/MCP and plugin command interfaces, saved data and Undo are unchanged.
Testing
Real-frame regression: observed failing before the fix and passing after it; three runs of the already-built regression binary took 0.28–0.40 s before (failing) and 0.21–0.63 s after (passing). The new test took 0.115 s in fork Linux CI and 0.287 s on Windows x64. The complete Linux test step took 16m28s, versus 22m29s in the referenced main run (those totals include build/cache effects). No new CI jobs or fixtures.
Both originally failing GPU tests passed unchanged, and all nine gpu_fastpath tests passed in the broader run.
cargo xtask changed: passed (2,537 tests, formatting, Clippy with warnings denied, test hygiene, layering, attribution and row-access limits).
Full fork CI: passed on Linux, macOS, Windows x64 and Windows ARM64, plus wasm smoke, Android/iOS builds, licences, schema and GDAL/DuckDB checks.
UI evidence
Linux at 900×550, after moving the pointer over the map. The status bar keeps its height; its scrollbar now floats over the readouts.
Before:
After:
Related issue
Fixes the Windows main-CI regression after #3627 (for example, run 47018189160).
Summary by CodeRabbit
Bug Fixes
The status bar now stays within its designated area when text is enlarged, preventing pointer movement over the map from shifting the map view.
Status bar readouts can scroll with floating scroll bars, keeping the strip’s layout constrained while preserving access to its contents.
No actionable comments were generated in the recent review.
Walkthrough
The status bar now renders inside a clipped child UI bounded by its rectangle, and its readouts use floating scroll bars. The scrolling-row widget shares configuration logic between floating and non-floating variants. A UI test checks that enlarged body text and pointer movement do not change the map view rectangle.
scrolling_row and the new floating_scrolling_row use shared configuration logic. The helper sets whether scroll bars float while retaining the existing bar dimensions and horizontal scrolling behavior.
Constrain status bar readouts crates/ui-egui/src/chrome.rs
The status bar renders in a child UI clipped to its rectangle, and its readouts use floating_scrolling_row. A UI test checks that pointer movement over the map leaves the map view rectangle unchanged with enlarged body text.
This change keeps the status readouts in a fixed, clipped strip so the map no longer shifts by a pixel when system font metrics differ. I found no concrete risk, and the behavior of other scrolling toolbars is unchanged.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: status readouts no longer resize the map. The change keeps the status readouts in a fixed, clipped strip with a floating scrollbar, and the title states the same goal.…
Description check
The description follows the template. It has Summary, Testing, and UI evidence sections, and it includes before and after screenshots for the visible status bar change. The Related issue section links…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: status readouts no longer resize the map. The change keeps the status readouts in a fixed, clipped strip with a floating scrollbar, and the title states the same goal. The title is short and specific. It uses the conventional fix(ui) prefix.
Full details: Description check
Explanation
The description follows the template. It has Summary, Testing, and UI evidence sections, and it includes before and after screenshots for the visible status bar change. The Related issue section links the referenced regression run and cites #3627 as the cause, but it does not use the template's closing-keyword form. The template asks for a related issue reference, and the description gives context rather than a formal link.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
A rabbit scrolls beneath the sky, Floating bars drift gently by. The status strip stays in its place, While map bounds keep their steady space. My paws move on; the view stays true.
Recent review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: ASSERTIVE
Plan: Advanced
Run ID: 80f728c8-a490-449d-9656-cfe30731e770
Commits
Reviewing files that changed from the base of the PR and between cc06db4 and 34627ce.
Files selected for processing: 2
crates/ui-egui/src/chrome.rs
crates/ui-egui/src/widgets.rs
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.
GitHub Pages takes a minute or two to publish a new commit. Newer commits from the fork aren't published until a maintainer adds the preview label (once per commit).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ci:windowsRun the Windows CI jobs on this pull request
1 participant
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Keep status readouts inside a fixed, clipped strip and float their scrollbar over the row. The other scrolling toolbars keep their existing scrollbar placement.
With Windows system-font metrics, the solid scrollbar introduced in #3627 could expand the status row's content. A native Windows trace shows the map's bottom edge moving from y=516 to y=517 on the same wheel step that replaces the cached GPU frame, with the map revision and source/tile generations unchanged. This unnecessary resize broke frame reuse during flat and tilted navigation.
The regression drives the real app frame, uses a taller font to reproduce the layout condition on Linux, moves the pointer onto the map, and checks that its rectangle stays unchanged. The existing GPU frame-reuse assertions are unchanged.
This reaches the desktop and browser status bar. The phone uses its own chrome. This changes layout only: ribbon, shortcuts, command search, command-line, Python, Assistant/MCP and plugin command interfaces, saved data and Undo are unchanged.
Testing
gpu_fastpathtests passed in the broader run.cargo xtask changed: passed (2,537 tests, formatting, Clippy with warnings denied, test hygiene, layering, attribution and row-access limits).UI evidence
Linux at 900×550, after moving the pointer over the map. The status bar keeps its height; its scrollbar now floats over the readouts.
Before:
After:
Related issue
Fixes the Windows main-CI regression after #3627 (for example, run 47018189160).
Summary by CodeRabbit