From efe9d36ebaade4c58693f31672cd240d923e915d Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 6 Jun 2020 13:40:03 +0200 Subject: [PATCH] LibWeb: Always scroll PageView to top when a new document is set --- Libraries/LibWeb/PageView.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Libraries/LibWeb/PageView.cpp b/Libraries/LibWeb/PageView.cpp index 4b15377098..2bf457bb88 100644 --- a/Libraries/LibWeb/PageView.cpp +++ b/Libraries/LibWeb/PageView.cpp @@ -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) {