Text drawer now takes in runes instead of a string

This commit is contained in:
2023-01-18 00:42:04 -05:00
parent 85ddb8ace1
commit b03cba57e1
5 changed files with 9 additions and 11 deletions

View File

@@ -157,7 +157,7 @@ func (element *Checkbox) SetText (text string) {
if element.text == text { return }
element.text = text
element.drawer.SetText(text)
element.drawer.SetText([]rune(text))
textBounds := element.drawer.LayoutBounds()
element.core.SetMinimumSize (
textBounds.Dy() + theme.Padding() + textBounds.Dx(),