mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 09:49:15 +03:00
Profiler: Limit the initial size of the timeline container
If there are a lot of process timeline tracks, we don't want to make the window gigantic. So let's just put a limit on it.
This commit is contained in:
parent
16efe603cb
commit
4eb198baf3
Notes:
sideshowbarker
2024-07-18 05:32:13 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/4eb198baf3b
@ -22,7 +22,8 @@ TimelineContainer::TimelineContainer(GUI::Widget& header_container, TimelineView
|
||||
update_widget_sizes();
|
||||
update_widget_positions();
|
||||
|
||||
set_fixed_height(timeline_view.height() + frame_thickness() * 2);
|
||||
int initial_height = min(300, timeline_view.height() + frame_thickness() * 2);
|
||||
set_fixed_height(initial_height);
|
||||
|
||||
m_timeline_view->on_scale_change = [this] {
|
||||
update_widget_sizes();
|
||||
|
Loading…
Reference in New Issue
Block a user