Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-THEME-043

Zoom scales the text and the column without a redraw

When the zoom is set, the extension SHALL set the content font size to the base size multiplied by the zoom and the content column width to the maximum content width multiplied by the zoom, never wider than the pane, without drawing the page again.

Step 2 of path 1 in StRS-MDOKFSTUDIO-THEME-011: from “The zoom has changed” to “The text and the column are scaled together”.

Scenarios 6

The situations the tests check; open one to read it.

nominal70 and 200 percent
Giventhe handbook at 70 % in a 900 px pane (visual scenario theme-zoom/v09) and at 200 % (v10)
Whenthe font size of a paragraph is read
Thenit is 70 % and 200 % of the base size, within half a pixel
boundaryToolbar does not scale
Giventhe same pages
Whenthe toolbar buttons are measured
Thenthey keep their size; only the content text and the heading band text follow the zoom
nominalWide pane
Giventhe handbook at 70 % and at 200 % in a 900 px pane with the default maximum width 960 (visual scenarios theme-zoom/v09 and v10)
Whenthe column box is measured
Thenit is about 672 px at 70 % and the pane width at 200 % (the smaller of the pane and 960 times the zoom, within 40 px), with no horizontal page scroll
boundaryNarrow pane
Giventhe handbook at 150 % in a 460 px pane (visual scenario theme-zoom/v11)
Whenthe column is measured
Thenit stays inside the pane and the paragraphs are inside the pane (the no-sideways-scroll rule is SwRS-MDOKFSTUDIO-LAYOUT-001)
nominalTwo zooms share one page shell
Givenrenders of one document at zoom 100 and zoom 130
Whenthe shell keys and the context keys are computed
Thenthe shell keys are equal, the context keys are equal and the second page can be patched into the first
boundaryContext key of the preferences
Giventhe preview preferences with zoom 100 and with zoom 130
Whenthe runtime context keys are computed
Thenthe two keys are equal

Implemented in 2

Tested by 4