This content has been marked as final. Show 5 replies
You could use a background image, or you just could size the children and left the container to resize to the size requiered by their children.
thanks for your replay,mab_bond
u said that the container can resize themself after i sized the children,but i don't think the moudle can be automatic resized,or i haven't find out the way.can u show me a clear view of how to let it resize.i appreciate u.
how are you loading your modules? using a moduleloader class or MXML component? can you show us some code?
essentially when the ready event for the module is fired, you can get the reference to loaded module and resize either the module or the container.
there are certain containers, like e.g. view stack, that could resize automatically for others you'll have to do it manually.
If you don't specify specific height= and width= then I find it usually autosize for me. Otherwise, there is some discussion about using setWidthPercentage or something I've seen discussed before.
yes,great! thanks slaingod sent me a bright clue.i didn't set the height and width value,then the my module is autosize by its content now.thanks again.