Переглянути джерело

Fixed checkbox dependency on internal API

Tig 1 рік тому
батько
коміт
05935f7fca
1 змінених файлів з 1 додано та 2 видалено
  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;
         }