We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e6b11d commit 22b6f96Copy full SHA for 22b6f96
scene/gui/control.cpp
@@ -1739,12 +1739,15 @@ void Control::_size_changed() {
1739
data.size_cache = new_size_cache;
1740
1741
if (is_inside_tree()) {
1742
- if (size_changed) {
1743
- notification(NOTIFICATION_RESIZED);
1744
- }
1745
if (pos_changed || size_changed) {
1746
- item_rect_changed(size_changed);
+ // Ensure global transform is marked as dirty before `NOTIFICATION_RESIZED` / `item_rect_changed` signal
+ // so an up to date global transform could be obtained when handling these.
1747
_notify_transform();
+
+ if (size_changed) {
1748
+ notification(NOTIFICATION_RESIZED);
1749
+ }
1750
+ item_rect_changed(size_changed);
1751
}
1752
1753
if (pos_changed && !size_changed) {
0 commit comments