You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Ignore layout and translation changes in Controls outside of tree
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user