mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:57:35 +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:
parent
29e00cda2e
commit
4a843f7405
1 changed files with 1 additions and 0 deletions
|
@ -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 });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue