You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unexpected document dimensions in paginated mode #158
Alright, so after checking old screenshots from years ago, the good news is that it’s always been like that. And it doesn’t impact document.scrollableElement negatively.
The bad news is that I can’t explain why we didn’t add an height to body so that the number is the same as :root/html. Could be that it messed up fragmentation, with lines being clipped at the top or the bottom of columns, but I couldn’t find any confirmation in issues, documentation, nor comments. Or maybe it messed up columns → scroll update, I can’t tell, that was not documented, unfortunately.
This would be a simple fix then (setting a max-height dimension to body in pagination, and resetting it in scroll), but I can’t tell the impact at the moment. This would have to be stress-tested first.
Activity
JayPanoz commentedon Nov 22, 2024
Alright, so after checking old screenshots from years ago, the good news is that it’s always been like that. And it doesn’t impact
document.scrollableElementnegatively.The bad news is that I can’t explain why we didn’t add an
heighttobodyso that the number is the same as:root/html. Could be that it messed up fragmentation, with lines being clipped at the top or the bottom of columns, but I couldn’t find any confirmation in issues, documentation, nor comments. Or maybe it messed up columns → scroll update, I can’t tell, that was not documented, unfortunately.This would be a simple fix then (setting a
max-heightdimension tobodyin pagination, and resetting it in scroll), but I can’t tell the impact at the moment. This would have to be stress-tested first.