Page height & scrolling to the bottom

shabbysquire

Client
Регистрация
25.11.2012
Сообщения
544
Благодарностей
26
Баллы
28
I need to scroll near the bottom of a page, (where every page height is different). I can get the unique height for each page in pixels, no issue.

I need to subtract, say, 200 pixels from the value. Then, scroll down quickly to the end. For example, page height is 1000 px, then subtract 200 px = 800 px. Can ZP scroll to a pre-defined value?

Thanks.
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113
I need to scroll near the bottom of a page, (where every page height is different). I can get the unique height for each page in pixels, no issue.

I need to subtract, say, 200 pixels from the value. Then, scroll down quickly to the end. For example, page height is 1000 px, then subtract 200 px = 800 px. Can ZP scroll to a pre-defined value?

Thanks.
What do you mean ?
How can you count pixels ? I mean where should be those 800 px ? In bottom of page or in middle ?
You can try to count how much one Page Down button goes down. But to go down until your needed pint with one shot, as I know is not possible...
 

shabbysquire

Client
Регистрация
25.11.2012
Сообщения
544
Благодарностей
26
Баллы
28
That was my thoughts too - measure the pixels of 1 x page down action and work it out from there. Btw, I measure the height of the main container.
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113
I'm totally not sure for what do you need that, but maybe scroll into view method could help you...

ScrollIntoView
 
  • Спасибо
Реакции: shabbysquire

shabbysquire

Client
Регистрация
25.11.2012
Сообщения
544
Благодарностей
26
Баллы
28
Thanks. Scrolling to a html element might be better. The main reason is to make it appear more natural, plus I can see what's going on in the template.
 

Кто просматривает тему: (Всего: 2, Пользователи: 0, Гости: 2)