-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi all,
In my main zul page i have declared the following bandbox:
<bandbox id="bandbox" mold="rounded" autodrop="false" onOpen="controller.prepareBandbox()" />
<bandpopup id="bandpopup">
</bandpopup>
</bandbox>
When the prepareBandbox() method is fired the system opens a new zul page:
try {
Window winPopper = (Window)Executions.createComponents("popper.zul", bandpopup, parameters);
}
catch (Exception e) {
System.out.println(e);
}
Everything works fine. The only problem is that if i don't declare the appropriate height/width of the bandbox then the popper window is not visible as a whole and i have to scroll to see the rest of it.
Is there anyway the band popup to be resized automatically according to the size of the inner window?
Hi peter
Yes, finally this is what i have done. I am getting the width/height of the child window and then i resize the band popup (after creation) using these bounds. The only problem now is that for some reason, the first time the popup is opened, it appears with vert/hor scrollbars and with a slight smaller size than the inner window. The second time the popup is dropped down everything is ok! This happens only in Chrome. FF works fine. Could it be a bug?
Thanks
Just a notice. The first time the band popup is rendered it has an invalid position. It does not recognize the bounds of the browser window.
Same (invalid) behavior in IE7.
Asked: 2010-09-29 08:03:12 +0800
Seen: 754 times
Last updated: Oct 04 '10