mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:37:34 +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:
parent
3cc5308ddc
commit
9a334ebb3a
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue