hide views with x bounds in the wrong order

This commit is contained in:
Jesse Duffield 2022-04-17 10:29:12 +10:00
parent 5b19e175bc
commit bce22fd599

2
gui.go
View File

@ -1053,7 +1053,7 @@ func (g *Gui) draw(v *View) error {
return nil
}
if !v.Visible || v.y1 < v.y0 {
if !v.Visible || v.y1 < v.y0 || v.x1 < v.x0 {
return nil
}