If you step into Panel.layoutChrome() in the FlexBuilder debugger, it
appears from the source that the layout of the title is hardcoded to 5
pix off the left margin. So I guess you're out of luck in terms of
using CSS.
You could override layoutChrome() in a Panel subclass and hand-position
the title label movie clip, in which case you're deep in undocumented
territory that will almost certainly break in some subsequent release.
But it would work.
Not a nice choice, eh?
A third idea is to simply not use Panel, and write your own VBox
subclass that looks a lot like one but centers the title.
. . . ...j
Brett Hitzel wrote:
>
> Hello Everyone,
>
> We are trying to center the text that appears in the title sections of
> Panels, to no avail. I
> have tried utilizing the 'titleStyleDeclaration' style property, but I am not
> sure that I am
> doing it right. I referenced a CSS class that was in my included stylesheet,
> and in that class
> i specified 'text-align:center' and that did not work, however, it does
> effect it in some way
> because when I do that the text in the panel header is no longer bolded. I
> have tried
> various styles within the my CSS class and none have had any real effect.
>
> Anyone out there tried this before or have any ideas?
>
> Thanks!
> -Brett
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/