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
