Fixed checkbox dependency on internal API

This commit is contained in:
Tig
2024-05-14 15:21:41 -07:00
parent e6f883b96b
commit 05935f7fca

View File

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