Skip to content

Commit

Permalink
Profiler: Fix unmovable splitter
Browse files Browse the repository at this point in the history
Set preferred height instead of fixed height to allow the splitter to
move.

The splitter respects set_fixed_height() after a808cfa "LibGUI+
Applications: Govern Splitter resizing by opportunistic growth", and
that caused the splitter in Profiler to stop working.
  • Loading branch information
stendavid authored and awesomekling committed Aug 16, 2022
1 parent a74f512 commit 0b9d83f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Userland/DevTools/Profiler/TimelineContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 0b9d83f

Please sign in to comment.