1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:47:44 +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

@ -205,6 +205,10 @@ void ColumnsView::push_column(ModelIndex const& parent_index)
dbgln("Adding a new column");
m_columns.append({ parent_index, 0 });
update_column_sizes();
// FIXME: Find a way not to jump the view so much when changing folders within the same directory.
scroll_to_right();
update();
}