Hi,
The following sample code worked OK in ZK2.4.0. But it does not work in ZK3.0.
The popup works 1st time OK but 2nd,3rd... times it remains invisible.
The bug seems caused by the popup <window> being declared *inside* a <vbox>. If the popupwin is moved
*outside* the vbox then it seems to work OK.
Thanks
DM
==============
<?xml version="1.0" encoding="UTF-8"?>
<?page title="ZK3.0 popup problem"?>
<zk>
<window id="form" border="normal" title="form" contentStyle="background:#D3DBF4;">
<vbox>
POPUP BUG IN ZK 3.0:<separator/>
A) Press the "Popup" button in the window 2 below<separator/>
B) Close the popup window<separator/>
C) Press the "Popup" button again. BUG: This time the poup window does not appear!!<separator/>
<separator/>
MORE INFO:<separator/>
Move the "mypopup" <window> to outside the vbox and the problem goes away<separator/>
<hbox>
<button label="Popup" onClick="onPopup();"/>
<label id="xx"/>
</hbox>
<zscript><![CDATA[
void onPopup() {
xx.value += "popup ";
mypopup.doPopup();
}
]]></zscript>
<!-- If mypoup is inside the vbox then this does not work -->
<!-- If mypoup is outside the vbox then this does work -->
<window id="mypopup" title="popup window" border="normal" width="200px" height="200px" contentStyle="background:yellow" visible="false" closable="true">
<attribute name="onClose">
self.visible = false;
event.stopPropagation();
</attribute>
This is my popup
</window>
</vbox>
</window>
</zk>
Logged In: YES
user_id=1684431
Originator: NO
Fixed since 11/14.