Browse Source

Profiler: Fix scrolling behavior

When resizing the timeline view the timelines should scroll to the
bottom when the resize operation reveals space that is beyond the
view.
Gunnar Beutner 4 years ago
parent
commit
eed6ce8b8b

+ 1 - 0
Userland/DevTools/Profiler/TimelineContainer.cpp

@@ -57,6 +57,7 @@ void TimelineContainer::update_widget_sizes()
 void TimelineContainer::resize_event(GUI::ResizeEvent& event)
 {
     AbstractScrollableWidget::resize_event(event);
+    update_widget_positions();
     update_widget_sizes();
 }
 

+ 1 - 0
Userland/Libraries/LibGUI/ScrollableContainerWidget.cpp

@@ -50,6 +50,7 @@ void ScrollableContainerWidget::update_widget_size()
 void ScrollableContainerWidget::resize_event(GUI::ResizeEvent& event)
 {
     AbstractScrollableWidget::resize_event(event);
+    update_widget_position();
     update_widget_size();
 }