Skip to main content
JabbyPandaUA
Inspiring
May 18, 2010
Question

Why "textAlign" style is excluded from s:Button?

  • May 18, 2010
  • 1 reply
  • 589 views

Hi all,

    Spark Button excludes style "textAlign" in its current implementation and I do not see a reason why it is so.

    Default ButtonSkin for Spark Button uses <s:Label> to display button's label and <s:Label> supports "textAlign" style without no problem.

     The change to Button's style "textAlign" could be easily propagated to s:Label in skin via binding, e.g, but it is not done it default skin.

<s:Label id="labelDisplay"              textAlign="{getStyle('textAlign')}"              verticalAlign="middle"              maxDisplayedLines="1"              horizontalCenter="0" verticalCenter="1"              left="10" right="10" top="2" bottom="2">     </s:Label>

This topic has been closed for replies.

1 reply

JabbyPandaUA
Inspiring
June 1, 2010

Found the answer here:

textAlign in PI doesn't do anything for s:Button

https://bugs.adobe.com/jira/browse/SDK-24101

Button needs to exclude textAlign style

https://bugs.adobe.com/jira/browse/SDK-23040