nelsam / vidar

vidar is a highly experimental Go editor, written in Go, using gxui
The Unlicense
50 stars 7 forks source link

Сlosing tab with hidden tab invoke panic #101

Closed Kvaz1r closed 6 years ago

Kvaz1r commented 6 years ago

By hidden I mean that this tab displaced with splitter through the visible border.

for vertical: panic: SetSize() called with a negative width. Size:

for horizontal: panic: SetSize() called with a negative height. Size:

nelsam commented 6 years ago

This was a bug in gxui related to having only a single split with a weight of 0, resulting in a netweight of 0, resulting in 0/0 as the frac value to multiply against the width or height of the splitter layout.

Solved by nelsam/gxui@5d25601