mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 23:58:11 +00:00
Profiler: Add horizontal_scrollbar height to initial_height
This prevents the scrollbar from covering the TimelineTrack when there is one
This commit is contained in:
parent
b8f03bb072
commit
9971bb0b05
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ TimelineContainer::TimelineContainer(GUI::Widget& header_container, TimelineView
|
|||
update_widget_sizes();
|
||||
update_widget_positions();
|
||||
|
||||
int initial_height = min(300, timeline_view.height() + frame_thickness() * 2);
|
||||
int initial_height = min(300, timeline_view.height() + horizontal_scrollbar().max_height() + frame_thickness() * 2);
|
||||
set_fixed_height(initial_height);
|
||||
|
||||
m_timeline_view->on_scale_change = [this] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue