Discuss anything related to web development but no technical support questions


Post by Stanleyliu1006 »

Hi

How can i set up the bottom scroll-bar to align to the left on the scheduler? At present, it automatically jumps to the centre when the scheduler page load (as the screenshot below).


Kind regards
Stan
Attachments
Scoll-to-the-left.png
Scoll-to-the-left.png (105.67 KiB) Viewed 1874 times

Post by Stanleyliu1006 »

Hi

I found further clues.

Whenever i try to use setViewPreset to overwrite the existing viewPreset, the scroll bar will jump to the middle of the place like the screenshot above. So any configuration i can use to prevent this jump by using setViewPreset?

Thanks
Stan

Post by Terence »

switching preset relocates the current scroll position.

You can pass a new new timespan or disable it by:
this.switchViewPreset(preset, startDate, endDate, false, { notScroll : true});

Post by Stanleyliu1006 »

Brilliant, thanks Terence. That's solved my problem.

Post Reply