Hi Nicolas,

sorry, I was thinking you talked about Jewel, so didn't understand
the references to addChild. Now I understand
since you're using MXRoyale.

I must say I don't know much about emulation. Hope others here like Alex,
Yishay, Piotr, Alina, etc... could give you support on that.

Sorry can be of much help here

Carlos



El mar., 1 sept. 2020 a las 16:50, Nicolas Aguttes (<
[email protected]>) escribió:

> Hello Carlos,
>
> Here a small project so you understand what I mean.
> Basically it display a button to add 4 labels to the dom.
> By default labels are added but parent DOM size is not modified, so you
> can view the labels only by scrolling
> If you uncomment the line 33 of the Ecran2Class, you get the behaviour I
> would like to have
>
> Thanks
> Nicolas
>
> Le mar. 1 sept. 2020 à 13:36, Carlos Rovira <[email protected]> a
> écrit :
>
>> Hi Nicolas,
>>
>> sorry but still can't figure it out.
>> For example "addchild" does not exist in Royale, maybe you mean
>> "addElement", but that is used in almost all Royale components.
>> I think the best is to create an example with the minimum code that shows
>> the problem, so I can understand what you're trying to do and the problem
>> itself. This is critical, since many people fail on this since dont
>> understand others don't know anything about what they are doing or what
>> they are trying to achieve.
>> In order I can run the example, I recommend you to take one of the blog
>> examples (in examples/blog) and duplicate and change the code, then share
>> with me via github or other way so I can compile with maven and see what's
>> going on.
>> Thans
>>
>> El lun., 31 ago. 2020 a las 20:50, Nicolas Aguttes (<
>> [email protected]>) escribió:
>>
>>> Hello Carlos,
>>>
>>> Sorry for the confusion.
>>> In fact in my main view there are different sub views (mxml) that are
>>> empty when the main view is first loaded, so it means that this main view
>>> has a calculated height (by Royale) which is very low, then when we
>>> complete the different subviews, using the adchild method,  the main view
>>> keeps it initial calculated height and full page can't be viewed whithout
>>> using the scroll bar which is annoying .
>>> Hence my question: is it possible to recalculate the size of the
>>> container?
>>>
>>> Hope this is clearer, if not I can past a code example which illustrate
>>> what I meant
>>>
>>> Nicolas
>>>
>>> Le lun. 31 août 2020 à 20:28, Carlos Rovira <[email protected]> a
>>> écrit :
>>>
>>>> Hi Nicolas,
>>>>
>>>> Your question is confusing to me since you talk about "add data", but
>>>> then talk about the "addChild" method too (I guess from flex).
>>>> And after adding that data, the visual elements calculate sizes.
>>>> If for example, I'm loading AMF(RemoteObject) or REST data
>>>> (HTTPService), I use the "onResult" event handler to manage any operation I
>>>> could need at that time.
>>>>
>>>> El lun., 31 ago. 2020 a las 18:21, tranquiliste (<
>>>> [email protected]>) escribió:
>>>>
>>>>> Hello all,
>>>>>
>>>>> I have a question. In our application there are cases where we add data
>>>>> (addchild method) after sizes of the elements have been calculated and
>>>>> in
>>>>> that case I would like to have the size to be recalculated.
>>>>>
>>>>> Is there a way (beads) to do that?
>>>>>
>>>>> Thanks
>>>>> Nicolas
>>>>>
>>>>>
>>>>>
>>>>> -----
>>>>> Nicolas
>>>>> --
>>>>> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>>>>>
>>>>
>>>>
>>>> --
>>>> Carlos Rovira
>>>> http://about.me/carlosrovira
>>>>
>>>>
>>
>> --
>> Carlos Rovira
>> http://about.me/carlosrovira
>>
>>

-- 
Carlos Rovira
http://about.me/carlosrovira

Reply via email to