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:
parent
155070cfd8
commit
309259aeb6
3 changed files with 45 additions and 0 deletions
2
Tests/LibWeb/Text/expected/resize-scrollable-box.txt
Normal file
2
Tests/LibWeb/Text/expected/resize-scrollable-box.txt
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue