소스 검색

Fixed max width of filter buttons.

Kenric Nugteren 1 년 전
부모
커밋
3864a26b8a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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;