Hi Alex,

Well non of those events were launched
widthChanged/heightChanged/sizeChanged - cause simply I didn't set any
explicit sizes on a component/parent etc, so there wasn't any kind of place
where I could reach out and have the solution.

Thanks,
Piotr

czw., 12 gru 2019 o 06:45 Alex Harui <aha...@adobe.com.invalid> napisał(a):

>
>
> On 12/11/19, 9:26 PM, "Piotr Zarzycki" <piotrzarzyck...@gmail.com> wrote:
>
>     Hi Carlos,
>
>     I just wanted to add that even if component is being added to the
> parent in
>     HTML doesn't mean that you will have on it their real sizes
> immediately.
>
> That is true, especially if the parent (or grandparent, etc) is not
> actually in the DOM.
> Some complex components are built as subtrees before adding to the DOM.
>
> But in theory, controls  whose size depends on the parent should be laying
> out in response to widthChanged/heightChanged/sizeChanged events.
> Containers should be using layouts and LayoutBase listens for those 3
> events.
>
> I can certainly believe there is some scenario that isn't covered, but
> then we should do more investigation to understand the problem and
> determine the recommended practice.
>
> -Alex
>
>
>

-- 

Piotr Zarzycki

Patreon: *https://www.patreon.com/piotrzarzycki
<https://www.patreon.com/piotrzarzycki>*

Reply via email to