Merge pull request #67507 from Sauermann/fix-toplevel-root-control-node

Fix event propagation to child after set_as_toplevel
This commit is contained in:
Rémi Verschelde
2023-01-31 15:55:46 +01:00
4 changed files with 29 additions and 0 deletions

View File

@ -692,6 +692,12 @@ Transform2D Control::get_transform() const {
return xform;
}
void Control::_toplevel_changed_on_parent() {
// Update root control status.
_notification(NOTIFICATION_EXIT_CANVAS);
_notification(NOTIFICATION_ENTER_CANVAS);
}
/// Anchors and offsets.
void Control::_set_anchor(Side p_side, real_t p_anchor) {