From 4a843f7405752ca502f6b70e09d0f55eef855b9d Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 22 May 2021 23:02:51 +0200 Subject: [PATCH] Profiler: Allow scrolling through full range of profile timeline We were not taking the width of the process headers into account when computing the scrollable content size of the timeline. Fix this by passing the header width to AbstractScrollableWidget's set_size_occupied_by_fixed_elements(). --- Userland/DevTools/Profiler/TimelineContainer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/DevTools/Profiler/TimelineContainer.cpp b/Userland/DevTools/Profiler/TimelineContainer.cpp index 754e0b9586..d00a2b4ee2 100644 --- a/Userland/DevTools/Profiler/TimelineContainer.cpp +++ b/Userland/DevTools/Profiler/TimelineContainer.cpp @@ -51,6 +51,7 @@ void TimelineContainer::update_widget_sizes() m_header_container->do_layout(); auto preferred_size = m_header_container->layout()->preferred_size(); m_header_container->resize(preferred_size); + set_size_occupied_by_fixed_elements({ preferred_size.width(), 0 }); } }