Explorar el Código

Fixed max width of filter buttons.

Kenric Nugteren hace 1 año
padre
commit
3864a26b8a
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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))
         if (!string.IsNullOrEmpty(text))
         {
         {
-            MaxWidth = double.MaxValue;
+            stackPnl.MaxWidth = double.MaxValue;
             var lbl = new Label();
             var lbl = new Label();
             lbl.Content = text;
             lbl.Content = text;
             lbl.VerticalAlignment = VerticalAlignment.Stretch;
             lbl.VerticalAlignment = VerticalAlignment.Stretch;
@@ -96,7 +96,7 @@ public class FilterButton<T> : Button
         }
         }
         else
         else
         {
         {
-            MaxWidth = 30;
+            stackPnl.MaxWidth = 30;
         }
         }
 
 
         Content = stackPnl;
         Content = stackPnl;