1
Fork 0
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:
Astraeus- 2021-12-21 15:32:50 +01:00 committed by Andreas Kling
parent b8f03bb072
commit 9971bb0b05

View file

@ -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] {