ensureScroll on text input frames

This commit is contained in:
Drew DeVault 2019-05-25 15:54:01 -04:00
parent 9947ea125c
commit 1b11a96302

View file

@ -59,6 +59,8 @@ func (ti *TextInput) Draw(ctx *Context) {
scroll := ti.scroll
if !ti.focus {
scroll = 0
} else {
ti.ensureScroll()
}
ti.ctx = ctx // gross
ctx.Fill(0, 0, ctx.Width(), ctx.Height(), ' ', tcell.StyleDefault)