Browse Source

Fixed checkbox dependency on internal API

Tig 1 year ago
parent
commit
05935f7fca
1 changed files with 1 additions and 2 deletions
  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;
         }