Re: States doesn't work properly anymore

2018-05-04 Thread Piotr Zarzycki
Hi Alex, Many thanks for this solution. I have implemented it and it seems to be ok right now. It's enough if I pickup one level up parent. Currently I used that [1] function only in NavigationLayout component, but if I see that some of the component will generate additional container after

Re: States doesn't work properly anymore

2018-05-03 Thread Piotr Zarzycki
Alex, I had some session yesterday with that and I think I have found the reason. It is connected with how MDL is working. Let's start from the initial code This is how code looks like: -> After translation -> -> after translation -> In above case the parent of NavigationLayout should

Re: States doesn't work properly anymore

2018-05-01 Thread Alex Harui
An element without a royale_wrapper breaks the fundamental contract in UIBase. I recommend that you figure that part out. Good luck, -Alex On 5/1/18, 12:33 PM, "Piotr Zarzycki" wrote: In the other words - My website is loaded and component have initial state.

Re: States doesn't work properly anymore

2018-05-01 Thread Piotr Zarzycki
In the other words - My website is loaded and component have initial state. Than I'm clicking on the button I'm changing state for that component. Piotr On Tue, May 1, 2018, 7:27 PM Piotr Zarzycki wrote: > This component is already on the display list. I'm changing

Re: States doesn't work properly anymore

2018-05-01 Thread Piotr Zarzycki
This component is already on the display list. I'm changing States of that component. That's the weirdest thing. Piotr On Tue, May 1, 2018, 7:06 PM Alex Harui wrote: > Hi Piotr, > > What is the call stack at that point? Should the component be on the > display list

Re: States doesn't work properly anymore

2018-05-01 Thread Alex Harui
Because setClassNames can be expensive, we only want to do it if we have to. The component lifecycle is designed for setting lots of properties before adding a component to its parent. There is a call to setClassNames in addedToParent for that reason, so other calls to set the className

Re: States doesn't work properly anymore

2018-04-29 Thread Alex Harui
Hi Piotr, For me, parent is not undefined when the new value of snippetBackground is being applied. The first time I debugged through the code it looked like was undefined, but when I stepped through the parent getter it returned a valid result. I'm not sure if we can trust the value

Re: States doesn't work properly anymore

2018-04-28 Thread Alex Harui
I will look into it. On 4/28/18, 2:08 PM, "Carlos Rovira" wrote: Sorry but as I said I'm few days off so I can't look at it. Hope you can see the root of the problem since I was planning to use states in jewel example to do better organization of different

Re: States doesn't work properly anymore

2018-04-28 Thread Carlos Rovira
Sorry but as I said I'm few days off so I can't look at it. Hope you can see the root of the problem since I was planning to use states in jewel example to do better organization of different examples El El sáb, 28 abr 2018 a las 9:58, Piotr Zarzycki escribió: >

Re: States doesn't work properly anymore

2018-04-28 Thread Piotr Zarzycki
Carlos, Any thoughts ? Maybe it make sense that parent is undefined since view is changing state - it's not added yet to the parent. We should sort it out, because I don't see any weird in my case. I'm just changing className dynamically. :) Thanks, Piotr 2018-04-28 9:54 GMT+02:00 piotrz

Re: States doesn't work properly anymore

2018-04-28 Thread piotrz
DataBinding example is working fine, so it leads me to the className property in UIBase. I have setup break point and it looks like because this.parent is undefined className is not setup properly. Look into the screenshot. You can also setup breakpoint yourself to see results.

Re: States doesn't work properly anymore

2018-04-27 Thread Alex Harui
Try DataBindingExample. The checkbox should cause a TextArea to appear and disappear. -Alex On 4/27/18, 1:08 PM, "Piotr Zarzycki" wrote: Hi Guys, I've been working on some update to my TranspiledActionScript website. I have noticed that with

States doesn't work properly anymore

2018-04-27 Thread Piotr Zarzycki
Hi Guys, I've been working on some update to my TranspiledActionScript website. I have noticed that with current version of Nightly builds states are not working properly. I uploaded copy of my website here [1]. If you switch view from "Examples" to "Snippets" you should see that background is