summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-05-11 09:44:11 +0200
committerGitHub <noreply@github.com>2019-05-11 09:44:11 +0200
commitfea0c8858e53d50bc50b2e9d6aa815540ad0ef3c (patch)
treedde0fda1b439c6bb91bb4468b060ad2f167eb8d0
parent42d6205e8cb7775a901e280a9984c7c5b7da172a (diff)
parent920403c489fe3b0437634538bb4e45d55ac10eab (diff)
Merge pull request #28770 from volzhs/fix-scroll-back-top
Fix scroll back top
-rw-r--r--editor/filesystem_dock.cpp1
-rw-r--r--scene/gui/item_list.cpp1
2 files changed, 1 insertions, 1 deletions
diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp
index 6248680a52..97ff516055 100644
--- a/editor/filesystem_dock.cpp
+++ b/editor/filesystem_dock.cpp
@@ -462,6 +462,7 @@ void FileSystemDock::_navigate_to_path(const String &p_path, bool p_select_in_fa
_update_tree(_compute_uncollapsed_paths(), false, p_select_in_favorites);
if (display_mode == DISPLAY_MODE_SPLIT) {
_update_file_list(false);
+ files->get_v_scroll()->set_value(0);
}
String file_name = p_path.get_file();
diff --git a/scene/gui/item_list.cpp b/scene/gui/item_list.cpp
index f5e979e9e6..026374ded1 100644
--- a/scene/gui/item_list.cpp
+++ b/scene/gui/item_list.cpp
@@ -369,7 +369,6 @@ 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) {