Problem while trying to GET "top" of element.

muchink

Client
Регистрация
28.07.2012
Сообщения
193
Благодарностей
6
Баллы
18
Hi!
many times while I'm trying to create templates that are using mouse strokes I have the problem that when I GET the "top" of an element when the page's height is bigger than the window,
there are 3 (top in tab/document/browser), and it takes the "topintab" (e.g 485)
but the problem is that the real "top" is the "topinbrowser" (e.g 856) since the size of the browser(window of thread) is smaller than the height of the page and because of that it clicks on the wrong place.

I hope you understand me,

Thanks!
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 712
Баллы
113
And what's the problem? I didn't get it.
Use topinbrowser instead of topintab.
 

muchink

Client
Регистрация
28.07.2012
Сообщения
193
Благодарностей
6
Баллы
18
Oh, sorry. I didn't know it's possible!
I always used "top".
Thanks for the help alot!
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 712
Баллы
113
:az:
 

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