From 0b9d83fe0d0b95279a084313f5ada5f6c9cdb39e Mon Sep 17 00:00:00 2001 From: David Smith Date: Mon, 15 Aug 2022 23:08:47 +0200 Subject: [PATCH] Profiler: Fix unmovable splitter Set preferred height instead of fixed height to allow the splitter to move. The splitter respects set_fixed_height() after a808cfa7 "LibGUI+ Applications: Govern Splitter resizing by opportunistic growth", and that caused the splitter in Profiler to stop working. --- 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 65cfc60c4b..f392781228 100644 --- a/Userland/DevTools/Profiler/TimelineContainer.cpp +++ b/Userland/DevTools/Profiler/TimelineContainer.cpp @@ -24,7 +24,7 @@ TimelineContainer::TimelineContainer(GUI::Widget& header_container, TimelineView update_widget_positions(); int initial_height = min(300, timeline_view.height() + 16 + frame_thickness() * 2); - set_fixed_height(initial_height); + set_preferred_height(initial_height); m_timeline_view->on_scale_change = [this] { update_widget_sizes();