I thought buttons did show ...  You have to size them smaller than they
measure.

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Richard Rodseth
Sent: Wednesday, September 19, 2007 9:41 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Layout question

 

I have a component that I need to center within a control bar attached
to a panel. But the control bar also has a couple of link buttons over
on the left.

In the rest of the app, I have not yet had a need for absolute layout
or constraints. For this scenario, the following seems to work:

- a Canvas in the control bar,
- set horizontalCenter="0" on the component that needs centering.
- put the two link buttons in an HBox
- set a minimum width on the panel, so the centered component and link
buttons can't overlap.

Does this seem like a good approach?

As an aside, I'd love to have a setting so that components with text
labels (like titles in panels, or link buttons) could shrink to small
widths, and display a partial title with ellipses. Then the minimum
width in the above example could be lower.

Thanks in advance.

 

Reply via email to