Add MaxWidth property for text rendering in UI controls and fix maxWidth parameter in canvas extension methods

This commit is contained in:
Stone_Red
2026-06-16 19:46:05 +02:00
parent 92cc387f2d
commit e7922bdf05
6 changed files with 9 additions and 2 deletions
+1
View File
@@ -93,6 +93,7 @@ public class CheckBox() : Control("CheckBox")
["Color"] = TextColor,
["Content"] = Text,
["FontSize"] = boxSize,
["MaxWidth"] = Size.Width - boxSize - 5,
}
};
}