소스 검색

fix WrapPanel issue #3165 item width/height should trigger new measure

Andrey Kunchev 6 년 전
부모
커밋
a612ee5a3e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Avalonia.Controls/WrapPanel.cs

+ 1 - 1
src/Avalonia.Controls/WrapPanel.cs

@@ -42,7 +42,7 @@ namespace Avalonia.Controls
         /// </summary>
         static WrapPanel()
         {
-            AffectsMeasure<WrapPanel>(OrientationProperty);
+            AffectsMeasure<WrapPanel>(OrientationProperty, ItemWidthProperty, ItemHeightProperty);
         }
 
         /// <summary>