1
0
Fork 0

Merge pull request #44223 from mbrlabs/assetlib-scroll-up

Asset Library: Scroll up the ScrollContainer after page load
This commit is contained in:
Rémi Verschelde 2020-12-09 16:02:12 +01:00 committed by GitHub
commit d0f1c03b4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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); _request_image(item->get_instance_id(), r["icon_url"], IMAGE_QUEUE_ICON, 0);
} }
} }
if (!result.empty()) {
library_scroll->set_v_scroll(0);
}
} break; } break;
case REQUESTING_ASSET: { case REQUESTING_ASSET: {
Dictionary r = d; Dictionary r = d;