flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcus Fritze (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-33354) [button] define the placement of icon (iconPlacement) in skin [ButtonSkin]
Date Thu, 17 Jan 2013 14:44:13 GMT

    [ https://issues.apache.org/jira/browse/FLEX-33354?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13556221#comment-13556221

Marcus Fritze commented on FLEX-33354:

Thanks, yes I see. But I am only wondering, why it's not easily possible to layout a skin

icon of the button | another image in the button | the label of the button

	<s:HGroup left="10" right="10" top="2" bottom="2">
		<s:BitmapImage id="iconDisplay"/>
		<s:Image id="myCustomImage"/>
		<s:Label id="labelDisplay"/>

But this is not possible. I know, I can customize a spark button and ButtonSkin to achieve
this, but per default I think it could be easier.

Just a little bit brainstorming.
> [button] define the placement of icon (iconPlacement) in skin [ButtonSkin]
> --------------------------------------------------------------------------
>                 Key: FLEX-33354
>                 URL: https://issues.apache.org/jira/browse/FLEX-33354
>             Project: Apache Flex
>          Issue Type: Brainstorming
>          Components: Spark: Button, Spark: ToggleButton
>    Affects Versions: Apache Flex 4.9.0
>            Reporter: Marcus Fritze
>            Priority: Minor
> I think it would be better to define the placement of the icon in the button via Skin.
Currently, we set iconPlacement (left, right, bottom, top). I realized that the iconDisplay
is a SkinPart since Flex 4.5, but I can't see it in the default ButtonSkin. And the layout
of the icon, label and custom skin-parts is wrong when I use the "icon" and a Custom Skin
for the Spark Button / ToggleButton.
> Why isn't the iconDisplay in the ButtonSkin?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message