mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 08:41:15 +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
Notes:
sideshowbarker
2024-07-17 22:27:04 +09:00
Author: https://github.com/Astraeus- Commit: https://github.com/SerenityOS/serenity/commit/9971bb0b05b Pull-request: https://github.com/SerenityOS/serenity/pull/11348
|
@ -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…
Reference in a new issue