Skip to content

Commit

Permalink
Notify item_rect_changed before resized.
Browse files Browse the repository at this point in the history
  • Loading branch information
EAinsley committed Jul 1, 2024
1 parent 4ab8fb8 commit 819c392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/gui/control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 819c392

Please sign in to comment.