Tumetsu
Tumetsu

Reputation: 1721

<mx:ButtonBar/> set width for individual buttons

I have a buttonbar which has both buttons with only small icons and buttons with short text labels. Problem is that each button gets huge padding while I want to set width of the button relative to its contents. Below is illustration of my problem: Current one https://i.sstatic.net/c0hdb.png With buttonWidth=32 https://i.sstatic.net/DlbEq.png

I can set buttonWidth to 32 for my buttonbar which works fine for my icons, but not for text. Is there way to remove that huge padding of the buttons?

Upvotes: 1

Views: 111

Answers (1)

Jason Reeves
Jason Reeves

Reputation: 1716

If I understand what you are after there, you can use a layout inside the buttonbar tag something like this:

<s:layout>
    <s:HorizontalLayout variableColumnWidth="true" gap="0"/>
</s:layout>

Upvotes: 0

Related Questions