You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Vincent Sotto <ds...@gmail.com> on 2016/07/19 05:09:01 UTC
flatspark bug on default button
theres a bug when i set a buttonicon as default button of a form, the skin
changes back to default spark.
any workaround on this issue or is this already reported?
thank you
Re: flatspark bug on default button
Posted by Vincent Sotto <ds...@gmail.com>.
thank you reuger, its all working now!
On Wed, Jul 20, 2016 at 2:19 PM, OK <po...@olafkrueger.net> wrote:
> Maybe this is the better solution [1], adopted from here [2].
>
> Olaf
>
>
> [1] Using "emphasized" style attribute:
>
> <?xml version="1.0" encoding="utf-8"?>
> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
> xmlns:s="library://ns.adobe.com/flex/spark"
> xmlns:mx="library://ns.adobe.com/flex/mx"
> minWidth="955"
> minHeight="600"
> xmlns:components="flatspark.components.*">
> <fx:Script>
>
> </fx:Script>
>
> <fx:Style>
> @namespace s "library://ns.adobe.com/flex/spark";
> @namespace mx "library://ns.adobe.com/flex/mx";
> @namespace components "flatspark.components.*";
>
> components|ButtonIcon.emphasized
> {
> skinClass:
> ClassReference("flatspark.skins.ButtonIconSkin");
>
> }
> </fx:Style>
> <s:Form defaultButton="{btntest}">
> <s:TextInput/>
> <components:ButtonIcon id="btntest" label="Primary Button"
> width="213"
> height="{ButtonSizeEnum.Large}"
>
> brand="{BrandColorEnum.Primary}" />
> <components:ButtonIcon id="btntest2" label="Primary
> Button2"
> width="213"
> height="{ButtonSizeEnum.Large}"
>
> brand="{BrandColorEnum.Primary}"/>
> </s:Form>
> </s:Application>
>
>
> [2]: https://forums.adobe.com/thread/880144
>
>
>
>
> --
> View this message in context:
> http://apache-flex-development.2333347.n4.nabble.com/flatspark-bug-on-default-button-tp54000p54033.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>
Re: flatspark bug on default button
Posted by OK <po...@olafkrueger.net>.
Maybe this is the better solution [1], adopted from here [2].
Olaf
[1] Using "emphasized" style attribute:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955"
minHeight="600" xmlns:components="flatspark.components.*">
<fx:Script>
</fx:Script>
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
@namespace components "flatspark.components.*";
components|ButtonIcon.emphasized
{
skinClass: ClassReference("flatspark.skins.ButtonIconSkin");
}
</fx:Style>
<s:Form defaultButton="{btntest}">
<s:TextInput/>
<components:ButtonIcon id="btntest" label="Primary Button"
width="213" height="{ButtonSizeEnum.Large}"
brand="{BrandColorEnum.Primary}" />
<components:ButtonIcon id="btntest2" label="Primary Button2"
width="213" height="{ButtonSizeEnum.Large}"
brand="{BrandColorEnum.Primary}"/>
</s:Form>
</s:Application>
[2]: https://forums.adobe.com/thread/880144
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/flatspark-bug-on-default-button-tp54000p54033.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: flatspark bug on default button
Posted by Vincent Sotto <ds...@gmail.com>.
CSS does not work though
components|ButtonIcon {
skinClass : ClassReference("flatspark.skins.ButtonIconSkin");
}
so i have to set this for all my buttons, but im glad its working
On Wed, Jul 20, 2016 at 2:43 PM, Vincent Sotto <ds...@gmail.com> wrote:
> thank you it works!
>
> On Wed, Jul 20, 2016 at 1:12 PM, OK <OK...@edscha.com> wrote:
>
>> Hi,
>> passing the skin class (skinClass="flatspark.skins.ButtonIconSkin") to the
>> default button works for me [1]
>> .
>> HTH,
>> Olaf
>>
>>
>> [1] Modified test case:
>> <?xml version="1.0" encoding="utf-8"?>
>> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
>> xmlns:s="library://ns.adobe.com/flex/spark"
>> xmlns:mx="library://ns.adobe.com/flex/mx"
>> minWidth="955"
>> minHeight="600"
>> xmlns:components="flatspark.components.*">
>> <fx:Script>
>>
>> </fx:Script>
>> <s:Form defaultButton="{btntest}">
>> <s:TextInput/>
>> <components:ButtonIcon id="btntest" label="Primary Button"
>> width="213"
>> height="{ButtonSizeEnum.Large}"
>>
>> brand="{BrandColorEnum.Primary}"
>> skinClass="flatspark.skins.ButtonIconSkin"/>
>> <components:ButtonIcon id="btntest2" label="Primary
>> Button2"
>> width="213"
>> height="{ButtonSizeEnum.Large}"
>>
>> brand="{BrandColorEnum.Primary}"/>
>> </s:Form>
>> </s:Application>
>>
>>
>>
>> --
>> View this message in context:
>> http://apache-flex-development.2333347.n4.nabble.com/flatspark-bug-on-default-button-tp54000p54028.html
>> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>>
>
>
Re: flatspark bug on default button
Posted by Vincent Sotto <ds...@gmail.com>.
thank you it works!
On Wed, Jul 20, 2016 at 1:12 PM, OK <OK...@edscha.com> wrote:
> Hi,
> passing the skin class (skinClass="flatspark.skins.ButtonIconSkin") to the
> default button works for me [1]
> .
> HTH,
> Olaf
>
>
> [1] Modified test case:
> <?xml version="1.0" encoding="utf-8"?>
> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
> xmlns:s="library://ns.adobe.com/flex/spark"
> xmlns:mx="library://ns.adobe.com/flex/mx"
> minWidth="955"
> minHeight="600"
> xmlns:components="flatspark.components.*">
> <fx:Script>
>
> </fx:Script>
> <s:Form defaultButton="{btntest}">
> <s:TextInput/>
> <components:ButtonIcon id="btntest" label="Primary Button"
> width="213"
> height="{ButtonSizeEnum.Large}"
>
> brand="{BrandColorEnum.Primary}"
> skinClass="flatspark.skins.ButtonIconSkin"/>
> <components:ButtonIcon id="btntest2" label="Primary
> Button2"
> width="213"
> height="{ButtonSizeEnum.Large}"
>
> brand="{BrandColorEnum.Primary}"/>
> </s:Form>
> </s:Application>
>
>
>
> --
> View this message in context:
> http://apache-flex-development.2333347.n4.nabble.com/flatspark-bug-on-default-button-tp54000p54028.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>
Re: flatspark bug on default button
Posted by OK <OK...@edscha.com>.
Hi,
passing the skin class (skinClass="flatspark.skins.ButtonIconSkin") to the
default button works for me [1]
.
HTH,
Olaf
[1] Modified test case:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955"
minHeight="600" xmlns:components="flatspark.components.*">
<fx:Script>
</fx:Script>
<s:Form defaultButton="{btntest}">
<s:TextInput/>
<components:ButtonIcon id="btntest" label="Primary Button"
width="213" height="{ButtonSizeEnum.Large}"
brand="{BrandColorEnum.Primary}"
skinClass="flatspark.skins.ButtonIconSkin"/>
<components:ButtonIcon id="btntest2" label="Primary Button2"
width="213" height="{ButtonSizeEnum.Large}"
brand="{BrandColorEnum.Primary}"/>
</s:Form>
</s:Application>
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/flatspark-bug-on-default-button-tp54000p54028.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: flatspark bug on default button
Posted by Vincent Sotto <ds...@gmail.com>.
Hi Reuger,
here is an example
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955"
minHeight="600" xmlns:components="flatspark.components.*">
<fx:Script>
<![CDATA[
import flatspark.enums.BrandColorEnum;
import flatspark.enums.ButtonSizeEnum;
]]>
</fx:Script>
<s:Form defaultButton="{btntest}">
<s:TextInput/>
<components:ButtonIcon id="btntest" label="Primary Button"
width="213" height="{ButtonSizeEnum.Large}"
brand="{BrandColorEnum.Primary}"/>
<components:ButtonIcon id="btntest2" label="Primary Button2"
width="213" height="{ButtonSizeEnum.Large}"
brand="{BrandColorEnum.Primary}"/>
</s:Form>
</s:Application>
On Tue, Jul 19, 2016 at 6:14 PM, OK <OK...@edscha.com> wrote:
> Vincent Sotto wrote
> > theres a bug when i set a buttonicon as default button of a form, the
> skin
> > changes back to default spark.
> > any workaround on this issue or is this already reported?
> > thank you
>
> I'm just back from a holiday trip so my head is completely resetted. But I
> remember that I've had this issue also in past. I tried to reproduce it now
> with no success. It seems to work fine for whatever reason.
> Could you provide some test code or could you create a JIRA ticket?
>
> Thanks,
> Olaf
>
>
>
> --
> View this message in context:
> http://apache-flex-development.2333347.n4.nabble.com/flatspark-bug-on-default-button-tp54000p54003.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>
Re: flatspark bug on default button
Posted by OK <OK...@edscha.com>.
Vincent Sotto wrote
> theres a bug when i set a buttonicon as default button of a form, the skin
> changes back to default spark.
> any workaround on this issue or is this already reported?
> thank you
I'm just back from a holiday trip so my head is completely resetted. But I
remember that I've had this issue also in past. I tried to reproduce it now
with no success. It seems to work fine for whatever reason.
Could you provide some test code or could you create a JIRA ticket?
Thanks,
Olaf
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/flatspark-bug-on-default-button-tp54000p54003.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.