Browse Source

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

Andrey Kunchev 6 years ago
parent
commit
a612ee5a3e
1 changed files with 1 additions and 1 deletions
  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>