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
commit 4cfdd25384
No known key found for this signature in database
GPG key ID: C3336907360768E1
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) {