Scroll scrollbar to position via script

The actual table pulls in quite a lot of data, so I’m not that keen on keeping this open all the time.

I’ve had a look into the Java components and found the getVisibleRect() and scrollRectToVisible(…) methods. With the following code, I can scroll the Designer’s page frame (???), but in a client runtime, it doesn’t do anything.
I’ve called this on a button for now:

me = event.source.parent.getComponent('Template Repeater')

rect = me.getVisibleRect()
print rect
rect.y = rect.y + 10

me.scrollRectToVisible(rect)

the print statement in runtime returns: java.awt.Rectangle[x=0,y=0,width=1141,height=685]
the width and height are the size of the template repeater component, however the me.scrollRectToVisible(rect) call does nothing…
If I scroll the template repeater manually and run the script again, none of the values change.

What am I doing wrong? P.s. my Java knowledge is very little

Cheers