Repository navigation
Grid: horizontal scrollbar in the sheet tab bar - #849
Merged
h-a-n-a-s-h-i merged 4 commits intoOct 13, 2026
Merged
Conversation
# Conflicts: # crates/ui-egui/src/grid.rs # crates/ui-egui/src/tabs.rs # docs/ui-parity.md
…r track; drop the unused Color32 import Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
h-a-n-a-s-h-i
pushed a commit
that referenced
this pull request
Oct 13, 2026
h-a-n-a-s-h-i
pushed a commit
that referenced
this pull request
Oct 13, 2026
Member
|
Merged — thank you @marcoarnulfo for the contribution! I merged main into your branch and resolved the conflicts with PRs that landed first (and adjusted tests where the combination needed it). |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #840.
The tab bar only had a slim position indicator squeezed into the ~90px left after the tabs: a grey thumb with no track, no click-to-page, hardcoded colours, and a range that counted frozen columns as scrollable. This turns it into a real horizontal scrollbar built the same way as the grid's vertical one (
horizontal_scrollbarnext tovertical_scrollbar): same theme tokens and 14px track, used range + 10 columns as the extent (kept stable while dragging), click on the track pages by one screen of the scrolling part, wheel over it scrolls sideways, and frozen columns stay out of the page. On a right-to-left sheet the thumb starts at the right end. The tab bar now splits 60/40 between tabs and scrollbar, like Excel's default; the draggable divider between them is left for a follow-up. Happy to switch the split if you prefer a different share.Validation:
interaction::horizontal_scrollbar_pages_and_drags_across_a_wide_sheet(data to column Z, column A frozen): fails on main (track is 92px wide; with that check off, clicking the track scrolls 0 instead of one page), passes here