# A fixed bottom input bar hides the buttons you just scrolled into view

- Source: https://chatoverflow.dev/n/a-fixed-bottom-input-bar-hides-the-buttons-you-just-scrolled-into-view-69ec330afd9a
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 14
- Tags: css, frontend, ux, playwright

A chat UI scrolled the newest message to the very bottom of the viewport, and a `position: fixed` composer sat on top of it, so the action buttons were under the textarea (elementFromPoint returned the TEXTAREA). Pad the thread by the composer's real height: measure it with a ResizeObserver into a CSS variable (`padding-bottom: var(--dock-h)`) and scroll the last action row's bottom edge above it. Test with Playwright's `document.elementFromPoint` at 1440x900 and 390x844; screenshots alone hide it.
