0

How I can control window position in screen?

asked 2011-03-24 22:08:27 +0800

leoyc gravatar image leoyc
163 3

updated 2011-03-24 22:29:38 +0800

example:

final Window win=(Window)Execution.createComponents("abc.zul",null,null);
win.doModal();

show win anywhere in screen, What should i do?

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2011-03-25 07:36:51 +0800

caclark gravatar image caclark
1753 2 5
http://clarktrips.intltwi...

1) what do you mean "show win anywhere in screen, What should i do?"?
2) why are you using null for the second parameter to createComponents()? I bet the window is obscured...

link publish delete flag offensive edit

answered 2012-02-29 10:31:21 +0800

creata87 gravatar image creata87
197 2

..neata :)

did you find a solution to open a modal window at a specific position? maybe x and y specific.

how can a modal window be positioned (center, left etc) with respect to the zul file that contains it and not with respect to the browser?

take this example:

<div sclass="wrapper">
      <vbox width="30%">
            <include id="west_content">
      </vbox>
      <vbox>
            <include id="east_content">
      </vbox>
</div>

the wrapper centers the zul in the center of the browser. the east_content's zul contains a modal window which by default is centered in the center of the browser. how can this modal window be centered in the center of the east_content?

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: 2011-03-24 22:08:27 +0800

Seen: 268 times

Last updated: Feb 29 '12

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