Explorar o código

Fixed checkbox dependency on internal API

Tig hai 1 ano
pai
achega
05935f7fca
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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;
         }