Harbs,

States removes element from DOM, so this is very different than just
setting visible to false, but agree with you that the results for the user
is the same.

Thanks for sharing your thoughts!


2017-10-19 22:06 GMT+02:00 Harbs <[email protected]>:

> States cause elements to be added and removed.
>
> FWIW, I have found little reason to use States in Royale because setting
> visible to false causes elements to take up no space. Hence I’ve never
> really spent time looking into them.
>
> Harbs
>
> > On Oct 19, 2017, at 11:02 PM, Piotr Zarzycki <[email protected]>
> wrote:
> >
> > Hi Guys,
> >
> > I'm trying to understand how states are working. I have simple code which
> > should actually work. I'm using latest FlexJS from develop - not Royale
> > yet. [1] Am I doing something wrong ?
> >
> > Can someone shed some light how internally States are working ? I would
> > like to debug things, but not sure where to start.
> >
> > I have to admit that DataBindingExample where states has been used
> working
> > fine in old FlexJS code and Royale.
> >
> > [1] https://paste.apache.org/VBTs
> >
> > Thanks,
> > Piotr
>
>


-- 

Piotr Zarzycki

mobile: +48 880 859 557
skype: zarzycki10

LinkedIn: http://www.linkedin.com/piotrzarzycki
<https://pl.linkedin.com/in/piotr-zarzycki-92a53552>

GitHub: https://github.com/piotrzarzycki21

Reply via email to