Forgot to wrap the multiline input text haha

This commit is contained in:
Sasha Koshka 2024-08-25 02:49:08 -04:00
parent 92e4eb970d
commit b9c4e3c003

View File

@ -28,6 +28,7 @@ func newTextInput (text string, multiline bool) *TextInput {
textInput.box.SetTag("multiline", multiline) textInput.box.SetTag("multiline", multiline)
if multiline { if multiline {
textInput.box.SetAttr(tomo.AOverflow(false, true)) textInput.box.SetAttr(tomo.AOverflow(false, true))
textInput.box.SetAttr(tomo.AWrap(true))
textInput.box.SetAttr(tomo.AAlign(tomo.AlignStart, tomo.AlignStart)) textInput.box.SetAttr(tomo.AAlign(tomo.AlignStart, tomo.AlignStart))
} else { } else {
textInput.box.SetAttr(tomo.AOverflow(true, false)) textInput.box.SetAttr(tomo.AOverflow(true, false))