You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by piotrz <pi...@gmail.com> on 2016/12/18 09:47:44 UTC
[FlexJS, MDL] Strange behavior for Spinner component
Hi Carlos,
I've created another component from the list "Spinner". I'm experiencing
strange behavior. Spinner code [1]
1) When Spinner is launched first "createElement" is fired. I'm adding
typeNames = "mdl-spinner";
and later once div is created I'm adding another css class to classList:
spinner.classList.add("mdl-js-spinner");
2) Once component is created properties being fired and for some reason
classList contains only "mdl-spinner" - there is no "mdl-js-spinner".
I'm not sure what's wrong - I may miss something obvious.
If you find some times I would be appreciated if you look into that.
[1] https://paste.apache.org/yIkq
Thanks,
Piotr
-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-MDL-Strange-behavior-for-Spinner-component-tp57399.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS, MDL] Strange behavior for Spinner component
Posted by piotrz <pi...@gmail.com>.
Yeah that's what I thought. Ok now everything is working quite nicely. :)
Piotr
-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-MDL-Strange-behavior-for-Spinner-component-tp57399p57415.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS, MDL] Strange behavior for Spinner component
Posted by Carlos Rovira <ca...@codeoscopic.com>.
Ok, I think it's because you are adding to element directly and UIBase has
a className that manipulate element.className internaly. I think the right
way is both classes be added typeNames
2016-12-18 22:21 GMT+01:00 piotrz <pi...@gmail.com>:
> Carlos,
>
> Right now it's ok, but look into the old code [1]: "mdl-js-spinner" added
> in
> createElement function by classList.add will be ignored and I'm not sure
> why. I've tried to dig into the framework code but didn't find why actually
> classList is cleared.
>
> [1] https://paste.apache.org/yIkq
>
> Piotr
>
>
>
> -----
> Apache Flex PMC
> piotrzarzycki21@gmail.com
> --
> View this message in context: http://apache-flex-
> development.2333347.n4.nabble.com/FlexJS-MDL-Strange-behavior-for-Spinner-
> component-tp57399p57412.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>
--
Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es
Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.
De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.
Re: [FlexJS, MDL] Strange behavior for Spinner component
Posted by piotrz <pi...@gmail.com>.
Carlos,
Right now it's ok, but look into the old code [1]: "mdl-js-spinner" added in
createElement function by classList.add will be ignored and I'm not sure
why. I've tried to dig into the framework code but didn't find why actually
classList is cleared.
[1] https://paste.apache.org/yIkq
Piotr
-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-MDL-Strange-behavior-for-Spinner-component-tp57399p57412.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS, MDL] Strange behavior for Spinner component
Posted by Carlos Rovira <ca...@codeoscopic.com>.
Hi Piotr,
just checked the code, run and see the code, and I think all is ok. Nothing
strange to report :?
2016-12-18 14:33 GMT+01:00 piotrz <pi...@gmail.com>:
> I just fixed issue, but I wanted to understand why classList is being
> cleaned
> before properties has been setted?
>
> Piotr
>
>
>
> -----
> Apache Flex PMC
> piotrzarzycki21@gmail.com
> --
> View this message in context: http://apache-flex-
> development.2333347.n4.nabble.com/FlexJS-MDL-Strange-behavior-for-Spinner-
> component-tp57399p57403.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>
--
Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es
Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.
De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.
Re: [FlexJS, MDL] Strange behavior for Spinner component
Posted by piotrz <pi...@gmail.com>.
I just fixed issue, but I wanted to understand why classList is being cleaned
before properties has been setted?
Piotr
-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-MDL-Strange-behavior-for-Spinner-component-tp57399p57403.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.