search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

setScrollY in event scheduler jquery

Asked by Anonymous
6 years ago.

I have store opening time after 10 am but vertical scroll bar is not showing from top i.e vertical scrollbar is showing calendar events from bottom but it should be pointing from top.

Answer posted by Dan Letecky [DayPilot]
6 years ago.

The initial scrollbar position is set to the hour of day defined using businessBeginsHour.

You can also set a custom position using scrollToHour() method:
https://api.daypilot.org/daypilot-calendar-scrolltohour/

Comment posted by Anonymous
6 years ago.

Getting following error when used dp.scrollToHour(10);

Uncaught TypeError: Cannot set property 'scrollTop' of undefined
at DayPilot.Calendar.scrollToHour (daypilot-all.min.js?v=3068:17)
at eval (eval at <anonymous> (VM127 jquery-1.12.2.min.js:2), <anonymous>:23:8)
at eval (<anonymous>)
at VM127 jquery-1.12.2.min.js:2
at Function.globalEval (VM127 jquery-1.12.2.min.js:2)
at Ha (VM127 jquery-1.12.2.min.js:3)
at n.fn.init.append (VM127 jquery-1.12.2.min.js:3)
at n.fn.init.<anonymous> (VM127 jquery-1.12.2.min.js:3)
at Y (VM127 jquery-1.12.2.min.js:3)
at n.fn.init.html (VM127 jquery-1.12.2.min.js:3)

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.