mirror of
https://github.com/storytold/figcraft.git
synced 2026-11-29 01:34:37 +01:00
The presenter kept its 32 pt padding at Actual size (100%) as well as at Fit. A frame made at the window's size then had 64 pt less room than its own width and height and panned both ways. In Figma a frame shown at 100% reaches the edges and only what is bigger than the window pans. Actual size now takes the whole area; Fit keeps the padding and still never goes above 100%. Frames smaller than the window stay centred, and a frame bigger than the window starts centred across at its top as before, now from the window's edge. The doc comment on layout() says so. Test: a_frame_the_size_of_the_window_shows_at_100_percent_without_panning (a 1440x820 frame in the 1440x820 presenter; with the padding it panned 64 pt each way). presenter_scales_by_its_options_and_pans_what_overflows now expects the 100% pan range without the padding.