0

Band popup autosizing

asked 2010-09-29 08:03:12 +0800

cyiannoulis gravatar image cyiannoulis
1201 10

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?

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2010-09-30 20:56:21 +0800

PeterKuo gravatar image PeterKuo
481 2

@cyiannoulis
You may try to resize the bandpopup after popper.zul created.

You may also post a feature request for sizedByContent="true"

link publish delete flag offensive edit

answered 2010-10-01 02:41:53 +0800

cyiannoulis gravatar image cyiannoulis
1201 10

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

link publish delete flag offensive edit

answered 2010-10-01 07:04:56 +0800

cyiannoulis gravatar image cyiannoulis
1201 10

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.

link publish delete flag offensive edit

answered 2010-10-04 22:48:58 +0800

PeterKuo gravatar image PeterKuo
481 2

@cyiannoulis
Can you provide reproducible code and post to bug.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-09-29 08:03:12 +0800

Seen: 754 times

Last updated: Oct 04 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More