Sfoglia il codice sorgente

Notify item_rect_changed before resized.

Ainsley Su 1 anno fa
parent
commit
819c392ca3
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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) {