KazDragon / munin

A text-based gui component library built on Terminal++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Changes in preferred size don't propagate immediately

KazDragon opened this issue · comments

Ideally, a change in a preferred size should cause a re-layout in its container, which should cause a redraw. As it is now, this is ignored and nothing happens.

Not sure this is a problem. The only objects that would require any functionality from this are usually inside viewports, which will take care of it themselves.

I am reminded of why I wrote this in the first place: status bars require a preferred size of at least 1 height at all times. This means that it always occupies space even when unused.