Merge pull request #56954 from pycbouh/control-dont-resize-outside-tree

This commit is contained in:
Rémi Verschelde 2022-01-19 16:44:06 +01:00 committed by GitHub
commit 8396755cb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -733,8 +733,10 @@ void Control::_notification(int p_notification) {
} break; } break;
case NOTIFICATION_TRANSLATION_CHANGED: case NOTIFICATION_TRANSLATION_CHANGED:
case NOTIFICATION_LAYOUT_DIRECTION_CHANGED: { case NOTIFICATION_LAYOUT_DIRECTION_CHANGED: {
data.is_rtl_dirty = true; if (is_inside_tree()) {
_size_changed(); data.is_rtl_dirty = true;
_size_changed();
}
} break; } break;
} }
} }