Skip to content

Commit

Permalink
Profiler: Add horizontal_scrollbar height to initial_height
Browse files Browse the repository at this point in the history
This prevents the scrollbar from covering the TimelineTrack
when there is one
  • Loading branch information
Astraeus- authored and awesomekling committed Dec 21, 2021
1 parent b8f03bb commit 9971bb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Userland/DevTools/Profiler/TimelineContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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] {
Expand Down

0 comments on commit 9971bb0

Please sign in to comment.