mirror of
https://github.com/RGBCube/serenity
synced 2025-05-29 07:05:06 +00:00
LibWeb: Always scroll PageView to top when a new document is set
This commit is contained in:
parent
de6028dfa7
commit
efe9d36eba
1 changed files with 1 additions and 0 deletions
|
@ -60,6 +60,7 @@ PageView::PageView()
|
|||
if (on_set_document)
|
||||
on_set_document(document);
|
||||
layout_and_sync_size();
|
||||
scroll_to_top();
|
||||
update();
|
||||
};
|
||||
main_frame().on_title_change = [this](auto& title) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue