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
@@ -88,6 +88,7 @@ public class RadioButton() : Control("RadioButton")
["Color"] = TextColor,
["Content"] = Text,
["FontSize"] = Size.Height,
["MaxWidth"] = Size.Width - Size.Height - 5,
}
};
}