You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Andriy Panas (JIRA)" <ji...@apache.org> on 2015/06/30 13:06:04 UTC
[jira] [Commented] (FLEX-16465) verticalAlign, textAlign hardcoded
into Button and ToggleButton skins
[ https://issues.apache.org/jira/browse/FLEX-16465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14608125#comment-14608125 ]
Andriy Panas commented on FLEX-16465:
-------------------------------------
textAlign and verticalAlign properties are still hardcoded in a skin
https://github.com/apache/flex-sdk/blob/develop/frameworks/projects/spark/src/spark/skins/spark/ToggleButtonSkin.mxml#L235-L241
<!-- layer 8: text -->
<!--- @copy spark.components.supportClasses.ButtonBase#labelDisplay -->
<s:Label id="labelDisplay"
textAlign="center"
verticalAlign="middle"
maxDisplayedLines="1"
horizontalCenter="0" verticalCenter="1"
left="10" right="10" top="2" bottom="2">
</s:Label>
> verticalAlign, textAlign hardcoded into Button and ToggleButton skins
> ---------------------------------------------------------------------
>
> Key: FLEX-16465
> URL: https://issues.apache.org/jira/browse/FLEX-16465
> Project: Apache Flex
> Issue Type: Bug
> Components: Spark: Button
> Affects Versions: Adobe Flex SDK Previous
> Environment: Affected OS(s): All OS Platforms
> Language Found: English
> Reporter: Adobe JIRA
> Assignee: Adobe JIRA
>
> Steps to reproduce:
> 1. Try to set textAlign or verticalAlign as an attribute on a Button or ToggleButton
> 2.
> 3.
>
> Actual Results:
> label doesn't align b/c verticalAlign and textAlign are hardcoded into Button/TB skin.
>
> Expected Results:
> Don't hardcode.
>
> Workaround (if any):
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)