diff options
author | Andreas Kling <kling@serenityos.org> | 2021-08-14 00:00:10 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-14 01:28:26 +0200 |
commit | 9a334ebb3a01ba03ae52a290955e1036c336aaac (patch) | |
tree | 95464cf7044228b03d8d14ff4a9024e73664e69f /Userland/DevTools | |
parent | 3cc5308ddc45a3c189691c30bcd399132b181d33 (diff) | |
download | serenity-9a334ebb3a01ba03ae52a290955e1036c336aaac.zip |
Profiler: Don't lose sight of timeline tracks when zooming out
Update the track sizes before repositioning them. This ensures that they
always remain visible in the timeline container.
Diffstat (limited to 'Userland/DevTools')
-rw-r--r-- | Userland/DevTools/Profiler/TimelineContainer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/DevTools/Profiler/TimelineContainer.cpp b/Userland/DevTools/Profiler/TimelineContainer.cpp index 0dd3a0d936..2df77f1bdd 100644 --- a/Userland/DevTools/Profiler/TimelineContainer.cpp +++ b/Userland/DevTools/Profiler/TimelineContainer.cpp @@ -23,8 +23,8 @@ TimelineContainer::TimelineContainer(GUI::Widget& header_container, TimelineView update_widget_positions(); m_timeline_view->on_scale_change = [this] { - update_widget_positions(); update_widget_sizes(); + update_widget_positions(); }; } @@ -64,8 +64,8 @@ void TimelineContainer::update_widget_sizes() void TimelineContainer::resize_event(GUI::ResizeEvent& event) { AbstractScrollableWidget::resize_event(event); - update_widget_positions(); update_widget_sizes(); + update_widget_positions(); } } |