summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-12-09 16:02:12 +0100
committerGitHub <noreply@github.com>2020-12-09 16:02:12 +0100
commitd0f1c03b4f0ab1091b250b0982a7d6beeb66c73c (patch)
tree28fc8037443d87cf1d40f36e37292aab13942240
parentcf62289d24ff4a71513e55940011864e929e7bf8 (diff)
parent0e4f2ca860fcf8a6d6edc507e09c98883f140f2e (diff)
Merge pull request #44223 from mbrlabs/assetlib-scroll-up
Asset Library: Scroll up the ScrollContainer after page load
-rw-r--r--editor/plugins/asset_library_editor_plugin.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/plugins/asset_library_editor_plugin.cpp b/editor/plugins/asset_library_editor_plugin.cpp
index 9ecf5193a2..f3aa11317e 100644
--- a/editor/plugins/asset_library_editor_plugin.cpp
+++ b/editor/plugins/asset_library_editor_plugin.cpp
@@ -1187,6 +1187,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;