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

Profiler: Allow scrolling through full range of profile timeline

We were not taking the width of the process headers into account when
computing the scrollable content size of the timeline.

Fix this by passing the header width to AbstractScrollableWidget's
set_size_occupied_by_fixed_elements().
This commit is contained in:
Andreas Kling 2021-05-22 23:02:51 +02:00
parent 29e00cda2e
commit 4a843f7405

View file

@ -51,6 +51,7 @@ void TimelineContainer::update_widget_sizes()
m_header_container->do_layout();
auto preferred_size = m_header_container->layout()->preferred_size();
m_header_container->resize(preferred_size);
set_size_occupied_by_fixed_elements({ preferred_size.width(), 0 });
}
}