diff options
author | David Smith <davsm2@yahoo.se> | 2022-08-15 23:08:47 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-08-16 16:53:24 +0200 |
commit | 0b9d83fe0d0b95279a084313f5ada5f6c9cdb39e (patch) | |
tree | 8aae86f80c7eebb8a1bb21cce47654926f2224b2 /Userland | |
parent | a74f512f6b5485bc4033e60bd10503597e8eeb07 (diff) | |
download | serenity-0b9d83fe0d0b95279a084313f5ada5f6c9cdb39e.zip |
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.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/DevTools/Profiler/TimelineContainer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |