0

window.setPosition, onshow:anima.appear problem, Failed to invoke zkWind2.onSize

asked 2008-07-01 13:51:44 +0800

ansancle gravatar image ansancle
327 9

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> 
 

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2008-07-08 00:54:58 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

Here you are.

BTW, we still use the bug tracker on the sourceforge.

link publish delete flag offensive edit

answered 2008-07-07 13:25:23 +0800

ansancle gravatar image ansancle
327 9

Forgive me for being slow, but where is the new bug's forum?

link publish delete flag offensive edit

answered 2008-07-03 03:52:12 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

Please post it to bug-list. (freshly only)

Thanks,
Jumper

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: 2008-07-01 13:51:44 +0800

Seen: 585 times

Last updated: Jul 08 '08

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