浏览代码

Merge pull request #93800 from EAinsley/fix#92929

Fix incorrect size calculation when position is set on resized
Rémi Verschelde 1 年之前
父节点
当前提交
ea26272075
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scene/gui/control.cpp

+ 1 - 1
scene/gui/control.cpp

@@ -1746,10 +1746,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) {