Notify item_rect_changed before resized.

This commit is contained in:
Ainsley Su 2024-07-01 11:17:43 +08:00
parent 4ab8fb8093
commit 819c392ca3
No known key found for this signature in database
GPG key ID: 50AE6139D40772C1

View file

@ -1744,10 +1744,10 @@ void Control::_size_changed() {
// so an up to date global transform could be obtained when handling these.
_notify_transform();
item_rect_changed(size_changed);
if (size_changed) {
notification(NOTIFICATION_RESIZED);
}
item_rect_changed(size_changed);
}
if (pos_changed && !size_changed) {