kotcrab/vis-ui

BusyBar grows but does not shrink

Closed this issue · 2 comments

  • Place BusyBar in a Table, which fills the window.
  • Resize the window to observe the bar's behavior.

It grows when the window is sized bigger, but it does not shrink when the window is sized smaller.
Code suggests that the height is constant. So it seems to be only about how the width is determined when the layout changes.

A possible fix is overriding getPrefWidth and returning some constant value.

Fixed, thanks!