This content has been marked as final. Show 5 replies
Um, Wouldn't you just set the loaded modules height and width to 100%? Or am I missing something here?
"2JZ" <firstname.lastname@example.org> wrote in message
> I've been trying to bind a module's size to the caller's container's size.
> How do I do this correctly? Should I create an event listener in the
Try using percentages.
For strange reason, it seems like it keeps calling my Redraw() for my chart when I set the width to 100% in the moduler. :(
Plus, it wouldn't call my redraw chart functuion if I max or resize the browser by using the browser button. I am kinda lost. Can anyone give me some details behind?
I should treat the moduler as common componments on the application. And, I should specify the following in the module:
And, it will automatically adjust itself, rite?
If I want to redraw my chart, the function should be called during resize in the main app?
Thanks everyone. I got it straight out. Yes, set the module's width to 100% works. It does resize automatically. But, I encounter another problem.
I need to call the redraw function when the module gets resize. So, I call MainApp's resize function to call the redraw(). It works flawlessly when I use mouse to drag/resize the browser. But, the max. and restore down on browser doesn't redraw?