You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by Sugan Naicker <Su...@dev-x.co.za> on 2016/03/13 12:52:12 UTC

Flatspark - ButtonIcon - IconPlacement TOP does not work

Hi Team,

Need assistance with Flatspark, the ButtonIcon IconPlacement TOP does not
work.

Code : 
<components:ButtonIcon brand="{BrandColorEnum.Primary}"  iconPlacement="top"
iconFontSize="30" fontFamily="FontAwesome"  label="Test"
iconFont="{AwesomeUtils.fa_user}"  />

Result :
Icon remains on the LEFT, tested on a mobile and web project with the same
result.

Thanks.

Sugan 



RE: Flatspark - ButtonIcon - IconPlacement TOP does not work

Posted by OK <OK...@edscha.com>.
Thanks, most time I feel like a fool ;-)



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Flatspark-ButtonIcon-IconPlacement-TOP-does-not-work-tp12210p12260.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

RE: Flatspark - ButtonIcon - IconPlacement TOP does not work

Posted by Sugan Naicker <Su...@dev-x.co.za>.
Hi Olaf,

You are a star! Worked perfectly. Thanks.

Rgs,

Sugan

-----Original Message-----
From: OK [mailto:OKrueger@edscha.com] 
Sent: Monday, March 14, 2016 2:44 PM
To: users@flex.apache.org
Subject: Re: Flatspark - ButtonIcon - IconPlacement TOP does not work

Hi,
I've just revised the solution mentioned in my previous post so that you
just need to replace your ButtonIconSkin by using this one:
https://gist.github.com/ok-at-github/0b8a1b7c368af4e43f6f

(Instead of introducing a new style "iconFontPlacement" this Skin uses the
already existing Button style "iconPlacement")

You have to take care of the button size by yourself, it is not calculated
automatically.

HTH
Olaf



--
View this message in context:
http://apache-flex-users.2333346.n4.nabble.com/Flatspark-ButtonIcon-IconPlac
ement-TOP-does-not-work-tp12210p12224.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.



Re: Flatspark - ButtonIcon - IconPlacement TOP does not work

Posted by OK <OK...@edscha.com>.
Hi,
I've just revised the solution mentioned in my previous post so that you
just need to replace your ButtonIconSkin by using this one:
https://gist.github.com/ok-at-github/0b8a1b7c368af4e43f6f

(Instead of introducing a new style "iconFontPlacement" this Skin uses the
already existing Button style "iconPlacement")

You have to take care of the button size by yourself, it is not calculated
automatically.

HTH
Olaf



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Flatspark-ButtonIcon-IconPlacement-TOP-does-not-work-tp12210p12224.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Flatspark - ButtonIcon - IconPlacement TOP does not work

Posted by OK <OK...@edscha.com>.
Hi,

>Need assistance with Flatspark, the ButtonIcon IconPlacement TOP does not 
>work. 

Unfortunately this feature is currently not implemented.
I remember that I've created a JIRA ticket including a working
implementation for this:
https://issues.apache.org/jira/browse/FLEX-34698?filter=-2

Maybe this solution is quick and dirty, but I've used it in some projects
without any problems ;-)

Olaf





--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Flatspark-ButtonIcon-IconPlacement-TOP-does-not-work-tp12210p12216.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.