1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 14:45:07 +00:00

LibWeb: Update PageView content size on page relayout

If the layout changes and the page becomes taller or shorter for some
reason, we need to update the PageView's scrollable content size.
This commit is contained in:
Andreas Kling 2020-06-23 18:02:08 +02:00
parent 0166a1fa74
commit 78f10942ba
4 changed files with 9 additions and 0 deletions

View file

@ -66,6 +66,11 @@ PageView::~PageView()
{
}
void PageView::page_did_layout()
{
set_content_size(layout_root()->size().to_int_size());
}
void PageView::page_did_change_title(const String& title)
{
if (on_title_change)