mirror of
https://github.com/Stone-Red-Code/RemSox.git
synced 2026-09-05 07:46:31 +02:00
Add MaxWidth property for text rendering in UI controls and fix maxWidth parameter in canvas extension methods
This commit is contained in:
@@ -67,6 +67,7 @@ public class Button() : Control("Button")
|
||||
["Color"] = TextColor,
|
||||
["Content"] = Text,
|
||||
["FontSize"] = Size.Height - 8,
|
||||
["MaxWidth"] = Size.Width,
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -93,6 +93,7 @@ public class CheckBox() : Control("CheckBox")
|
||||
["Color"] = TextColor,
|
||||
["Content"] = Text,
|
||||
["FontSize"] = boxSize,
|
||||
["MaxWidth"] = Size.Width - boxSize - 5,
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -88,6 +88,7 @@ public class RadioButton() : Control("RadioButton")
|
||||
["Color"] = TextColor,
|
||||
["Content"] = Text,
|
||||
["FontSize"] = Size.Height,
|
||||
["MaxWidth"] = Size.Width - Size.Height - 5,
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user