Procházet zdrojové kódy

Fixed max width of filter buttons.

Kenric Nugteren před 1 rokem
rodič
revize
3864a26b8a
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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;