allow zero sized views

This commit is contained in:
Jesse Duffield 2021-02-09 21:54:33 +11:00
parent 347bedd836
commit 56085399e3

View File

@ -713,7 +713,7 @@ func (v *View) draw() error {
if v.Wrap {
if maxX == 0 {
return errors.New("X size of the view cannot be 0")
return nil
}
v.ox = 0
}