mirror of https://github.com/rivo/tview.git
Non-scrollable text views must track end.
This commit is contained in:
parent
5555b22427
commit
7a69902269
|
@ -187,6 +187,9 @@ func NewTextView() *TextView {
|
|||
// scollable. If true, text is kept in a buffer and can be navigated.
|
||||
func (t *TextView) SetScrollable(scrollable bool) *TextView {
|
||||
t.scrollable = scrollable
|
||||
if !scrollable {
|
||||
t.trackEnd = true
|
||||
}
|
||||
return t
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue