scrolls the layout view to the specified position
name | string | the name of the layout view |
x | number | null | optional, the value of the horizontal scroll or 'null' (if the scroll position shouldn't be changed) |
y | number | null | optional, the value of the vertical scroll or 'null' (if the scroll position shouldn't be changed) |
// 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);
Related sample: Public methods to get the layout cell views and scroll them