Luis de Dios 0b4bb4b832
🐛 Keep fitted content clear of the rulers (#13069)
* 🐛 Keep fitted content clear of the rulers

Fit actions pass padding in document units, so the margin on screen
shrinks with the zoom. On large designs the margin became smaller than
the fixed 22px ruler overlay and part of the content was hidden under
it.

Add a :min-screen-padding option to adjust-to-viewport. The existing
design-space padding is kept when it already leaves enough margin on
screen; otherwise the viewport is fitted again with a fixed screen
margin. Use it in fit-to-all, fit-to-selected and fit-to-shapes so all
fit paths behave the same at any zoom level.

Closes #12609

AI-assisted-by: deepseek-v4.1-flash

* 🐛 Keep page-open fits clear of rulers

Pass the minimum screen padding when initializing the viewport, and cover all
four fit margins for wide and tall content with the call-site minimum zoom.

AI-assisted-by: gpt-6-luna
2026-11-23 23:32:13 +01:00
..
2026-11-20 09:53:37 +01:00
2026-11-20 09:53:37 +01:00
2026-11-20 09:53:37 +01:00