Jump to content

scroll-position of scrollbox


erich.wanker
 Share

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...