Parcourir la source

Fixed checkbox dependency on internal API

Tig il y a 1 an
Parent
commit
05935f7fca
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 2
      Terminal.Gui/Views/CheckBox.cs

+ 1 - 2
Terminal.Gui/Views/CheckBox.cs

@@ -180,8 +180,7 @@ public class CheckBox : View
 
     private string GetFormatterText ()
     {
-        // BUGBUG: Dim.DimAuto is an internal API
-        if (Width is Dim.DimAuto || string.IsNullOrEmpty (Title) || ContentSize.Width <= 2)
+        if (string.IsNullOrEmpty (Title) || ContentSize.Width <= 2)
         {
             return Text;
         }