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