21 lines
326 B
Go
21 lines
326 B
Go
|
package views
|
||
|
|
||
|
import (
|
||
|
"git.tordarus.net/Tordarus/tui"
|
||
|
)
|
||
|
|
||
|
// GrowView is a tui.View which always demands all available space
|
||
|
type GrowView struct {
|
||
|
tui.ViewTmpl
|
||
|
}
|
||
|
|
||
|
var _ tui.View = &GrowView{}
|
||
|
|
||
|
func NewGrowView() *GrowView {
|
||
|
return &GrowView{}
|
||
|
}
|
||
|
|
||
|
func (v *GrowView) Layout() (prefWidth, prefHeight int) {
|
||
|
return -1, -1
|
||
|
}
|