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.
This commit is contained in:
David Smith 2022-08-15 23:08:47 +02:00 committed by Andreas Kling
parent a74f512f6b
commit 0b9d83fe0d

View file

@ -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();