Behaviour SwRS-MDOKFSTUDIO-TABLE-126
The cell editor is revealed in the table's scroll box
When the editor moves to a cell of a table wider than the pane, the extension SHALL scroll the table's sideways scroll box by the smallest amount that brings the cell and its editor inside it, without scrolling the page.
Part of StRS-MDOKFSTUDIO-TABLE-006, outside the paths drawn on its map.
Scenarios 1
The situations the tests check; open one to read it.
nominalTab in a table wider than the pane
Givena ten-column table wider than the pane, which scrolls sideways in its own box, and the editor in the first body cell
Whenthe writer presses Tab through the row and across the wrap to the next row, then Shift+Tab back
Thenafter each key the table box scrolls sideways, instantly and by the smallest amount, so that the cell and its editor lie inside the box with a 16 px margin; the page does not scroll
| Input | Outcome |
|---|---|
| Tab or Shift+Tab to a cell already inside the table box | The table does not scroll |
| Tab to a cell whose cell and editor together are wider than the box less both margins | The table scrolls so that their start lies 16 px inside the left edge of the box |
| Click on a cell partly hidden by the box edge | The editor opens in that cell and the table scrolls by the hidden part plus the margin |
| Editor reopened after a re-render (Tab in the last cell, a structural button of the table bar) | The table scrolls to the reopened cell the same way |
| A layout pass resizes the table box under an open editor (a pane resize, a toolbar change; the edited table keeps its Auto breakout, SwRS-MDOKFSTUDIO-LAYOUT-023) | The table scrolls again so that the cell and its editor lie inside the new box |
Implemented in 1
Tested by 1
Replaces
SwRS-MDOKFSTUDIO-TABLE-035Tab and the arrow keys move through the table cells superseded superseded by SwRS-MDOKFSTUDIO-TABLE-123, SwRS-MDOKFSTUDIO-TABLE-124, SwRS-MDOKFSTUDIO-TABLE-125, SwRS-MDOKFSTUDIO-TABLE-126 Markdown file