scrollLayoutCell

scrolls the layout view to the specified position

void scrollLayoutCell(string name,number | null x,number | null y);
namestringthe name of the layout view
xnumber | nulloptional, the value of the horizontal scroll or 'null' (if the scroll position shouldn't be changed)
ynumber | nulloptional, the value of the vertical scroll or 'null' (if the scroll position shouldn't be changed)

Example

// scrolls layout view only horizontally
gantt.scrollLayoutCell("resourceTimeline", 50);
 
// scrolls layout view only vertically
gantt.scrollLayoutCell("resourceTimeline", null, 50);
 
// scrolls layout view both horizontally and vertically 
gantt.scrollLayoutCell("resourceTimeline", 100, 100);

Details

Related sample:  Public methods to get the layout cell views and scroll them

See also
Back to top