1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:17:35 +00:00

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.
This commit is contained in:
Andreas Kling 2021-08-14 00:00:10 +02:00
parent 3cc5308ddc
commit 9a334ebb3a

View file

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