summaryrefslogtreecommitdiff
path: root/Userland/DevTools
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-05-22 23:02:51 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-22 23:02:51 +0200
commit4a843f7405752ca502f6b70e09d0f55eef855b9d (patch)
treec282230f54c0c3e97dc9d67e8a6b4c5c0865c3d8 /Userland/DevTools
parent29e00cda2e961957a44712ff8e21fa03c5efae7e (diff)
downloadserenity-4a843f7405752ca502f6b70e09d0f55eef855b9d.zip
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().
Diffstat (limited to 'Userland/DevTools')
-rw-r--r--Userland/DevTools/Profiler/TimelineContainer.cpp1
1 files changed, 1 insertions, 0 deletions
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 });
}
}