Merge pull request #28770 from volzhs/fix-scroll-back-top

Fix scroll back top
This commit is contained in:
Rémi Verschelde 2019-05-11 09:44:11 +02:00 committed by GitHub
commit fea0c8858e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View file

@ -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();

View file

@ -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) {