1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 21:07:34 +00:00

LibWeb: Clamp scroll offset into valid range after relayout

If the layout has been recalculated and the sizes of scrollable
overflow rectangles could have changed, we need to ensure that scroll
offsets remain within the valid range.
This commit is contained in:
Aliaksandr Kalenik 2024-02-22 02:09:16 +01:00 committed by Andreas Kling
parent 155070cfd8
commit 309259aeb6
3 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,2 @@
Item 1Item 2Item 3Item 4Item 5Item 6Item 7Item 8Item 9Item 10Item 11Item 12 scrollLeft (before resize): 1130
scrollLeft (after resize): 830