erich.wanker Posted July 14, 2014 Posted July 14, 2014 Hello folks :-) I animate a UniPanel with: UniSession.AddJS(detailbox.JSName + '.animate({ duration: 200, to: { x: 571, y: 139, opacity: 100}});'); BUT: I have a scrollbox ... and the "detailbox" position should be "linked" to the scrollbox.. I search something like: UniSession.AddJS(detailbox.JSName + '.animate({ duration: 200, to: { x: 571, y: 139 - scrollbox.position , opacity: 100}});'); Has anyone a idea? ThanX for Help Erich Quote
Sherzod Posted July 14, 2014 Posted July 14, 2014 Hi Erich. Scrollbox position relative to what? If relative to the screen it is possible as follows: scrollbox.jsname + '.getX()' scrollbox.jsname + '.getY()' Sorry scroll position: scrollbox.jsname + '.body.dom.scrollTop' //Y scrollbox.jsname + '.body.dom.scrollLeft' //X Best regards. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.