[BUG #7610] Buttons did not show ellipsis when dimension is very small

* Fixed button label to boxFlex1 for taking the whole available space.