From 8ad61f66699760f082dea06ac09c3ff6c55fba4a Mon Sep 17 00:00:00 2001 From: Marcus Brummer Date: Wed, 9 Dec 2020 15:24:26 +0100 Subject: [PATCH] Asset Library: Scroll up the ScrollContainer after page load (cherry picked from commit 0e4f2ca860fcf8a6d6edc507e09c98883f140f2e) --- editor/plugins/asset_library_editor_plugin.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/editor/plugins/asset_library_editor_plugin.cpp b/editor/plugins/asset_library_editor_plugin.cpp index bc355c2d1f8..9e2a8de76b7 100644 --- a/editor/plugins/asset_library_editor_plugin.cpp +++ b/editor/plugins/asset_library_editor_plugin.cpp @@ -1226,6 +1226,10 @@ void EditorAssetLibrary::_http_request_completed(int p_status, int p_code, const _request_image(item->get_instance_id(), r["icon_url"], IMAGE_QUEUE_ICON, 0); } } + + if (!result.empty()) { + library_scroll->set_v_scroll(0); + } } break; case REQUESTING_ASSET: { Dictionary r = d;