Selaa lähdekoodia

DatePicker tweaks

Tig 1 vuosi sitten
vanhempi
commit
354d02dc25
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      Terminal.Gui/Views/DatePicker.cs

+ 2 - 2
Terminal.Gui/Views/DatePicker.cs

@@ -271,8 +271,8 @@ public class DatePicker : View
                                        Text = _date.ToString (Format);
                                        Text = _date.ToString (Format);
                                    };
                                    };
 
 
-        Height = Dim.Auto ();
-        Width = Dim.Auto ();
+        Width = Dim.Auto (DimAutoStyle.Content);
+        Height = Dim.Auto (DimAutoStyle.Content);
 
 
         // BUGBUG: Remove when Dim.Auto(subviews) fully works
         // BUGBUG: Remove when Dim.Auto(subviews) fully works
         SetContentSize (new (_calendar.Style.ColumnStyles.Sum (c => c.Value.MinWidth) + 7, _calendar.Frame.Height + 1));
         SetContentSize (new (_calendar.Style.ColumnStyles.Sum (c => c.Value.MinWidth) + 7, _calendar.Frame.Height + 1));