Scroll to bottom of the page

18 views
Skip to first unread message

Sushant Mamgain

unread,
Jul 21, 2015, 12:55:25 PM7/21/15
to caius...@googlegroups.com
Hi, I am using following code to scroll page to bottom

set windowSize [$window size]
$window execute scroll([join $windowSize ,])


But page doesn't get scroll to bottom, It just moves  a bit

$window size returns co-ordinates as 1616,1134
but page is scrolling till (0,3200)

So what size the size proc returns. I was assuming it will be giving bottom right co-ordinates.


tobia...@gmail.com

unread,
Jul 22, 2015, 1:24:57 AM7/22/15
to caius-users, sushantm...@gmail.com
Hi,

$window size gives you the size of the window, not the size of the document. See also


In order to scroll to an element that is outside of the viewport, use $element move_to, which translates to this:


Best regards,
Tobias
Reply all
Reply to author
Forward
0 new messages