cancel
Showing results for 
Search instead for 
Did you mean: 

Scroll bar in SAP UI5

former_member192494
Participant
0 Kudos

Hi,

How can i control scroll bar position for a sap.m.page. That is on click of a button, the page should be scrolled to top.

I tried using "page.scrollTo(10,0)", but didn't work.

Please correct me if m wrong.

Thanks,

Ravikiran

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

try using

page.scrollTo(-10,1)

I think positive value for scrolling down. and negative value for scrolling up

Regards

former_member192494
Participant
0 Kudos

Hi Rajeesh,

Thank you for your reply, works perfect.

Regards,

Ravikiran

Answers (0)