瀏覽代碼

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;
         }