Repository navigation
Show or hide a workbook's sheet tabs and scroll bars (fixes #3101) - #3239
Conversation
…book Excel can hide the sheet tabs, the horizontal scroll bar and the vertical scroll bar of a workbook window (File › Options › Advanced › Display options for this workbook), saved with the workbook. GridCraft already read and wrote these settings (storytold#3057) but always showed all three, and had no command or option for them. New commands view.showSheetTabs, view.showHorizontalScrollBar and view.showVerticalScrollBar {on?} (toggling without `on`, undoable, saved with the workbook), and a "Display options for this workbook" section in File › Options. The tab bar follows them: without the tabs the scroll bar takes the bar, without the scroll bar the tabs do, and with neither the bar isn't shown; without the vertical scroll bar the grid takes its width. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
@coderabbitai review |
Action performed
|
…is hidden Addresses review comment 4453674677: after a frame drew both controls, turning off the horizontal scroll bar or the sheet tabs left app.grid.hscroll / app.grid.tab_split holding the old rectangles. sheet_tabs now clears both before any visibility return. Test: tab_split::hiding_the_controls_clears_their_cached_rectangles toggles both options on one live harness. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- #3223: sniff the first 64 KiB for a web page and skip JSON and files over the text-import cap, so every CSV/TSV is no longer decoded in full before the size check. - #3253: SYLK relative offsets use checked arithmetic (no overflow on R[9223372036854775807]); at most 1024 column-width records are kept; regression test. - #3254: a single selected merged cell searches the whole sheet, as one selected cell does. - #3252: the formula bar's height cap is half the room below the ribbon, not half the window, so the worksheet stays visible in a short window (CodeRabbit Major). - #3239, #3244, #3252, #3268: es/de/cs/zh/ko/ru/pt entries for the new interface strings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Merged — thank you @hectorviov for the contribution! I added es/de/cs/zh/ko/ru/pt entries for the new Options strings on main (865a789). |
Fixes #3101
What
Excel can hide the sheet tabs, the horizontal scroll bar and the vertical scroll bar of a workbook window: File › Options › Advanced › Display options for this workbook. The choice is saved with the workbook. GridCraft already reads and writes these settings (
<workbookView showSheetTabs … />, #3057), but it always showed all three and had no command or option for them.crates/engine/src/cmd/view.rs):view.showSheetTabs,view.showHorizontalScrollBarandview.showVerticalScrollBar, each{on?}. They toggle withouton, likeview.gridlines, are undoable, and are saved with the workbook. So the CLI, MCP and the control channel reach them.crates/ui-egui/src/tabs.rs):crates/ui-egui/src/grid/show.rs): with the vertical scroll bar off, the grid takes its width.Comparison
view.showSheetTabs {on: false}view.showVerticalScrollBar {on: false}Excel's behaviour is the issue's measurement (COM, in #3057). I didn't change these options in Excel myself, since they're Excel settings on the machine.
Fix build with Show sheet tabs and Show vertical scroll bar off: no tabs, the horizontal scroll bar across the bar, no vertical scroll bar, and the grid at full width.
Tests
tests::workbook_display_options_are_commands(engine): toggle and expliciton, saved through XLSX, undo.tab_split::display_options_hide_the_sheet_tabs_and_the_horizontal_scroll_bar(ui-egui): tabs off (no tab names, no split handle, scroll bar from the left), scroll bar off (tabs shown, no track or handle), both off (no bar). It fails on main's tab bar.cargo xtask cipasses.Anything a reviewer should look at first
tab_ratio(Sheet tabs: drag the handle at the scrollbar's left edge to give the tabs more or less room #2477's handle still keeps its share in UI state). The file'stabRatiois still kept as before.docs/ui-parity.mdgets a change note and a revision row.🤖 Generated with Claude Code
Summary by CodeRabbit