Dynamically resizing mashlets
Michael,
Does the parent DIV have a height set? Or is that floating as well? For "auto" or "100%" to work, the parent div must have a fixed height. This is not a limitation of Mashlets but how the browser renders the html.
Can you paste the html fragment here ?
Kishore
The answer to that question is very complicated. Keep in mind that auto width works in this scheme.
We have one page per mashlet where all we do is run the script block. We iframe that window into an ext card layout inside of a border layout. That page is in turn iframed into the Ext web desktop as an "application". So, eventually, there is a size set on the div, I just have no idea what that size might be or if it is, indeed floating.
I think you'll need to solve this problem within your mashlet implemention, the mashlet base class, Ema.BoxMashlet, doesn't listen for resizing of its container. If you take a look at mashboard, where it does appear that mashlets are being dynamically resized, they are actually being reloaded so that the mashlet dimensions are reset on loading. This will not be the case in future releases where we intend to make mashlets resizable once rendered.
So from within your mashlet implementation I would suggest your mashlet listen for resizing events on the element containing the mashlet and to then update your mashlet display when a change in size is detected.
Also, I'm not sure about the cascading of resize events from your desktop window, through to the iframes and down into your page containing the mashlet, there may be problems here.








Is there a way to dynamically resize a mashlet so that it fits the screen or div that it's in?