Procházet zdrojové kódy

Notify item_rect_changed before resized.

Ainsley Su před 1 rokem
rodič
revize
819c392ca3
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      scene/gui/control.cpp

+ 1 - 1
scene/gui/control.cpp

@@ -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) {