0

How to get current scrollTop property

asked 2008-06-17 08:49:46 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5037507

By: troum

Hi

There is a list box with dynamically added list items. Need to correct scroll position after item added. In other words, need to scroll 100px down (for example).
But Listbox.smartUpdate() method operates with absolute scrollTop position.
How can I get current scrollTop value after list items dynamically added?

Thanks
Sergey

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2008-06-18 00:54:10 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5039083

By: robbiecheng

Try Clients.scrollBy(int x, int y)
to scroll the current desktop (aka., browser window) by the specified number of pixels.

You can ignore the absolute scrollTop.

/robbie

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-06-17 08:49:46 +0800

Seen: 254 times

Last updated: Jun 18 '08

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