3 ms·
Couldn't you dynamically add padding to a footer element based on the view port size, resulting in sufficient "whitespace" under your content for the browser to
by bradleyland 15y ago
Couldn't you dynamically add padding to a footer element based on the view port size, resulting in sufficient "whitespace" under your content for the browser to render as you continue to scroll?
- eli 15y agoSure, but then it makes the scroll bar position inaccurate. The whitespace needs to go beyond the end of the scroll bar.
- reacocard 15y agoDoes it? If you can scroll further with the keyboard than the scrollbar can indicate, that would also make the scrollbar inaccurate. Perhaps instead we could add an indicator to the scrollbar (ala Chrome's text search indicators) that shows where the content actually ends.
- drey_ 15y agoWhy not just make the scrollbar take the extra whitespace into account as if it's part of the webpage? This is exactly what Scintilla (editing component) does if you enable that feature.