diff options
| author | Drew DeVault <sir@cmpwn.com> | 2019-05-25 15:54:01 -0400 | 
|---|---|---|
| committer | Drew DeVault <sir@cmpwn.com> | 2019-05-25 15:54:01 -0400 | 
| commit | 1b11a96302bd40244d43c374b433ce11f5d0321d (patch) | |
| tree | 7a92138c77972139b5f9194537838a073fb26ac1 | |
| parent | 9947ea125cdaed1de336ba939d63d8ecd7b313ea (diff) | |
ensureScroll on text input frames
| -rw-r--r-- | lib/ui/textinput.go | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/lib/ui/textinput.go b/lib/ui/textinput.go index aa8be78..892646d 100644 --- a/lib/ui/textinput.go +++ b/lib/ui/textinput.go @@ -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) | 
