Ver código fonte

Fixed max width of filter buttons.

Kenric Nugteren 1 ano atrás
pai
commit
3864a26b8a
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      inabox.wpf/Forms/FilterButton.cs

+ 2 - 2
inabox.wpf/Forms/FilterButton.cs

@@ -85,7 +85,7 @@ public class FilterButton<T> : Button
 
         if (!string.IsNullOrEmpty(text))
         {
-            MaxWidth = double.MaxValue;
+            stackPnl.MaxWidth = double.MaxValue;
             var lbl = new Label();
             lbl.Content = text;
             lbl.VerticalAlignment = VerticalAlignment.Stretch;
@@ -96,7 +96,7 @@ public class FilterButton<T> : Button
         }
         else
         {
-            MaxWidth = 30;
+            stackPnl.MaxWidth = 30;
         }
 
         Content = stackPnl;