Skip to content

fix(ui): keep status readouts from resizing the map - #3650

Merged
Mavrick-F merged 1 commit into
opengeos:mainfrom
Mavrick-F:fix/windows-gpu-fastpath
Dec 3, 2026
Merged

Mavrick-F merged 1 commit into
opengeos:mainfrom
Mavrick-F:fix/windows-gpu-fastpath

Conversation

@Mavrick-F

@Mavrick-F Mavrick-F commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

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

  • 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:

Before

After:

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.

@Mavrick-F Mavrick-F added the ci:windows Run the Windows CI jobs on this pull request label Dec 3, 2026
@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

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.

Changes: Status Bar UI

Layer / File(s) Summary
Share scrolling-row configuration
crates/ui-egui/src/widgets.rs
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.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: giswqs, jgregoriorincon

Merge Risk: Minimal · up to 34627

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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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.

Share

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-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

📖 Docs preview

Item Value
Preview https://preview.rustgis.app/pr-3650/
Web app https://preview.rustgis.app/pr-3650/app/
Commit 34627ce

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).

@Mavrick-F
Mavrick-F added this pull request to the merge queue Dec 3, 2026
Merged via the queue into opengeos:main with commit 7ac6daf Dec 3, 2026
39 checks passed
@Mavrick-F
Mavrick-F deleted the fix/windows-gpu-fastpath branch December 3, 2026 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:windows Run the Windows CI jobs on this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant