0

modal窗体问题

asked 2010-03-12 07:29:58 +0800

zkabc123 gravatar image zkabc123
6

在窗体wintTest01上用Executions.createComponents(url,wintTest01,null)方法打开一个窗体winTest02,winTest02.doHighlighted(),在窗体winTest02上用同样的方法Executions.createComponents(url,wintTest02,null)再打开一个窗体winTest03,winTest03.doHighlighted()。如果窗体winTest03比winTest02大,则winTest03超出的会被阴影遮住,导致winTest03页面显示不完整,不知道各位大大有没有碰到这个问题,该如何解决,先谢谢各位了。

delete flag offensive retag edit

2 Replies

Sort by » oldest newest

answered 2010-03-14 20:26:27 +0800

adam4891288 gravatar image adam4891288
657 1 5

我试了一下没这个问题啊,code如下:
父窗:

<zk>
<window id="win1" border="normal" title="zi窗" width="850px"  height="650">
<button label="click me">
	<attribute name="onClick">
		Window win = Executions.createComponents("child.zul", null, null);
		win.doHighlighted();
	</attribute>
</button>
</window>
</zk>

子窗:
<zk>
<window id="win2" border="normal" title="子窗" width="350px"  height="350">
<button label="click me">
	<attribute name="onClick">
		Window win = Executions.createComponents("grandchild.zul", null, null);
		win.doHighlighted();
	</attribute>
</button>
</window>
</zk>

子子窗:
<zk>
<window id="win3" border="normal" title="子子窗" width="550px"  height="550">
</window>
</zk>

不知道是否哪里跟你的条件不一致

link publish delete flag offensive edit

answered 2010-03-15 00:51:08 +0800

zkabc123 gravatar image zkabc123
6

updated 2010-03-15 02:30:19 +0800

谢谢你的帮忙,我的条件是这样: Executions.createComponents("child.zul", win1, null);创建子窗体的时候就指定父窗体的, 这样如果子窗体移动到父窗体的外,就会出现阴影遮住的情况

<zk>
<window id="win1" border="normal" title="zi窗" width="850px" height="650">
<button label="click me">
<attribute name="onClick">
Window win = Executions.createComponents("child.zul", win1, null);
win.doHighlighted();
</attribute>
</button>
</window>
</zk>

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-03-12 07:29:58 +0800

Seen: 389 times

Last updated: Mar 15 '10

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