1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:47:45 +00:00

Profiler: Set the initial size of the timeline container to a snug fit

This commit is contained in:
Andreas Kling 2021-08-14 01:27:40 +02:00
parent 8f590cbeb8
commit 0d21a1307e

View file

@ -22,6 +22,8 @@ TimelineContainer::TimelineContainer(GUI::Widget& header_container, TimelineView
update_widget_sizes();
update_widget_positions();
set_fixed_height(timeline_view.height() + frame_thickness() * 2);
m_timeline_view->on_scale_change = [this] {
update_widget_sizes();
update_widget_positions();