mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00:00
LibWeb: Always scroll PageView to top when a new document is set
This commit is contained in:
parent
de6028dfa7
commit
efe9d36eba
Notes:
sideshowbarker
2024-07-19 05:48:25 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/efe9d36ebaa
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
Reference in a new issue