Revert "Profiler: Configure the TimelineContainer to be shrink to fit"

This reverts commit cfef3040fb.

It looks like although this does improve things, it also degrades the
experience and messes with the usability, especially for large amounts
of processes.

Need to come back to this with a more holistic fix.
This commit is contained in:
Brian Gianforcaro 2021-07-19 11:34:37 -07:00 committed by Ali Mohammad Pur
commit 06468d9794
Notes: sideshowbarker 2024-07-18 22:57:59 +09:00

View file

@ -6,13 +6,12 @@
#include "TimelineContainer.h"
#include "TimelineView.h"
#include <LibGUI/BoxLayout.h>
#include <LibGUI/Layout.h>
namespace Profiler {
TimelineContainer::TimelineContainer(GUI::Widget& header_container, TimelineView& timeline_view)
{
set_layout<GUI::HorizontalBoxLayout>();
set_should_hide_unnecessary_scrollbars(true);
m_header_container = header_container;
m_timeline_view = timeline_view;
@ -22,7 +21,6 @@ TimelineContainer::TimelineContainer(GUI::Widget& header_container, TimelineView
timeline_view.move_to_back();
update_widget_sizes();
update_widget_positions();
set_shrink_to_fit(true);
m_timeline_view->on_scale_change = [this] {
update_widget_positions();