2
0
mirror of https://github.com/godotengine/godot.git synced 2025-04-25 01:48:08 +08:00

Fix wrong inspector offset on scene switch

This commit is contained in:
Michael Alexsander 2025-02-03 18:27:31 -03:00
parent eee39f004b
commit 9002590990
No known key found for this signature in database
GPG Key ID: A9C91EE110F4EABA

@ -4138,7 +4138,8 @@ void EditorInspector::expand_revertable() {
}
void EditorInspector::set_scroll_offset(int p_offset) {
set_v_scroll(p_offset);
// This can be called before the container finishes sorting its children, so defer it.
callable_mp((ScrollContainer *)this, &ScrollContainer::set_v_scroll).call_deferred(p_offset);
}
int EditorInspector::get_scroll_offset() const {