1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:47:35 +00:00

LibGUI: Automatically scroll to a new column on adding it in ColumnsView

This commit is contained in:
Karol Kosek 2022-12-27 23:02:31 +01:00 committed by Andreas Kling
parent 35e3df7f13
commit 70885a3dee
3 changed files with 10 additions and 0 deletions

View file

@ -303,6 +303,11 @@ void AbstractScrollableWidget::scroll_to_bottom()
scroll_into_view({ 0, content_height(), 0, 0 }, Orientation::Vertical);
}
void AbstractScrollableWidget::scroll_to_right()
{
scroll_into_view({ content_width(), 0, 0, 0 }, Orientation::Horizontal);
}
void AbstractScrollableWidget::set_automatic_scrolling_timer_active(bool active)
{
if (active == m_active_scrolling_enabled)