From 9971bb0b05bf06ec5c076ccbfffe7908eca23e87 Mon Sep 17 00:00:00 2001 From: Astraeus- Date: Tue, 21 Dec 2021 15:32:50 +0100 Subject: [PATCH] Profiler: Add horizontal_scrollbar height to initial_height This prevents the scrollbar from covering the TimelineTrack when there is one --- Userland/DevTools/Profiler/TimelineContainer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/DevTools/Profiler/TimelineContainer.cpp b/Userland/DevTools/Profiler/TimelineContainer.cpp index dd93c6e838..2e2ed380a5 100644 --- a/Userland/DevTools/Profiler/TimelineContainer.cpp +++ b/Userland/DevTools/Profiler/TimelineContainer.cpp @@ -22,7 +22,7 @@ TimelineContainer::TimelineContainer(GUI::Widget& header_container, TimelineView update_widget_sizes(); update_widget_positions(); - int initial_height = min(300, timeline_view.height() + frame_thickness() * 2); + int initial_height = min(300, timeline_view.height() + horizontal_scrollbar().max_height() + frame_thickness() * 2); set_fixed_height(initial_height); m_timeline_view->on_scale_change = [this] {