-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I basically cut and paste the animation code from the Demo but am having trouble with the child window not centering on the parent window. If I set it to position="center" and the parent window is set to position="center", the child window appears in the lower right of the browser window. If I leave the parent window in the upperleft, the child window appears roughly in the center of the entire browser window, right and lower than the parent. I have cut out all of my other code which leaves basically what is in the demo. In the demo I overlapped the parent window and it still centered the child. I can't see any difference but there must be something. Help appreciated. When I run it in Jboss I don't get any exceptions but it doesn't work, when I run it the live demo I get the following ZK exception :
Failed to invoke zkWind2.onSize zk.firstChild(A,"DIV").firstChild.firstChild has no properties
Here is the code :
<?page title="TEST"?> <window height="500px" width="300px" visible="true" id="dhtestwindow" position="center" mode="overlapped"> <window id="volumeParentWindow" border="normal" width="200px" position="center" mode="overlapped" action="onshow:anima.appear(#{self});onhide:anima.fade(#{self})" visible="true"> <hbox valign="center"> <label value="foo animation test"/> </hbox> </window> <groupbox mold="3d" width="100%"> </groupbox> <tabbox width="100%" id="tabbox" mold="accordion"> <tabs> <tab id="speakersTab" label="Where are you?"/> <tab id="mainTab" label="Tuner" /> </tabs> <tabpanels> <tabpanel id="speakersTabPanel" height="385px"> </tabpanel> <tabpanel id="mainTabPanel" height="385px"> <button onClick="volumeParentWindow.visible = !volumeParentWindow.visible" height="10px" width="10px" /> </tabpanel> </tabpanels> </tabbox> </window>
Please post it to bug-list. (freshly only)
Thanks,
Jumper
Asked: 2008-07-01 13:51:44 +0800
Seen: 585 times
Last updated: Jul 08 '08