mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:27:35 +00:00
LibWeb: Return overflow rect height from Element::scroll_height()
Spec says that this function has to return "height of the element scrolling area" which is height of "scrolling overflow rect" in our model.
This commit is contained in:
parent
9f581d0bc9
commit
591c8d2b68
3 changed files with 27 additions and 1 deletions
|
@ -1430,7 +1430,7 @@ int Element::scroll_height() const
|
|||
return 0;
|
||||
|
||||
// 7. Return the height of the element’s scrolling area.
|
||||
return paintable_box()->border_box_height().to_int();
|
||||
return paintable_box()->scrollable_overflow_rect()->height().to_int();
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/semantics-other.html#concept-element-disabled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue