robotlegs / robotlegs-framework

An ActionScript 3 application framework for Flash and Flex
https://robotlegs.tenderapp.com/
MIT License
967 stars 261 forks source link

mediator's initialize method run more than once #156

Closed xupea closed 10 years ago

xupea commented 11 years ago

I hava a HDividedBox container, two vbox in it, i map the left of vbox to the mediator, if i resize the left, the initialize and destroy method in mediator will run once(only once), is this mormal or not? and it bothers me a lot.

creynders commented 11 years ago

Not sure, @darscan you got an idea?

darscan commented 11 years ago

Hi! Could you provide some more info?

Robotlegs 1 or 2? Flex SDK version? Any other details?

xupea commented 11 years ago

robotlegs2 flex sdk 4.6, the code is simple:

and then you map CostomComp to its mediator, you will find that the initialize method run more than once, only if the CostumComp's width is bigger than its parent (VBox)

xupea commented 11 years ago

"" "" "" "" "" "" ![Uploading DeepinScreenshot-2420.png . . .]()

xupea commented 11 years ago

now I set clipContent = false, that solved the problem

darscan commented 10 years ago

Might be related to: #161

darscan commented 10 years ago

Hello,

This should be fixed in RL v2.2.0.