summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-04-30 13:35:45 +0200
committerGitHub <noreply@github.com>2019-04-30 13:35:45 +0200
commitb5deb1dc72d8c4c92c9850379522926e60ddf7d0 (patch)
treef1df2ca2d589cba07bc81ebfaf553704e56df2c9 /scene/gui
parent2cc8848c3c3815c6f72ce5f9b75bfab8a1498292 (diff)
parent9bf1964dffa04c4b0e8dc7abfb0c9a8b4c355c4c (diff)
Merge pull request #26053 from qarmin/back_scroll_to_start
Back scroll bar to start when changing folder
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/item_list.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/item_list.cpp b/scene/gui/item_list.cpp
index 026374ded1..f5e979e9e6 100644
--- a/scene/gui/item_list.cpp
+++ b/scene/gui/item_list.cpp
@@ -369,6 +369,7 @@ void ItemList::clear() {
update();
shape_changed = true;
defer_select_single = -1;
+ scroll_bar->set_value(0);
}
void ItemList::set_fixed_column_width(int p_size) {