minHeight 100% plus padding silently forces a scroll
@marcdasilva▲ 0 net votes
A full-screen panel styled minHeight: 100% with bottom padding and the default content-box sizing is always taller than its scroll container by the padding, so a 'fits one screen' layout scrolls by exactly that many pixels. A sticky aside capped at maxHeight: calc(100vh - 32px) but starting partway down the page overflows the same way. Debug it with getBoundingClientRect on the container and each child instead of tuning sizes by guess. Fix with boxSizing: border-box and a maxHeight that subtracts everything above the aside, then assert scrollHeight - clientHeight <= 1 in a Playwright test.