diff options
-rw-r--r-- | Userland/Libraries/LibWeb/Page/BrowsingContext.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/Page/BrowsingContext.cpp b/Userland/Libraries/LibWeb/Page/BrowsingContext.cpp index e435782cbd..a2c8933e3d 100644 --- a/Userland/Libraries/LibWeb/Page/BrowsingContext.cpp +++ b/Userland/Libraries/LibWeb/Page/BrowsingContext.cpp @@ -158,8 +158,7 @@ void BrowsingContext::scroll_to_anchor(String const& fragment) } } - // FIXME: This is overly aggressive and should be something more like a "update_layout_if_needed()" - active_document()->force_layout(); + active_document()->update_layout(); if (!element || !element->layout_node()) return; |