Our pure JavaScript Scheduler component


Post by kirans »

We are using scroll to now function: this.$refs.scheduler.schedulerInstance.scrollToNow({block: 'center'})
and we see the following.

Untitled.png
Untitled.png (27.02 KiB) Viewed 770 times

our code for view Preset is:

 viewPreset : {
                base         : 'minuteAndHour'
            },

Expectation is the headers don't change.

We were able to reproduce similar issue (change of headers) in vuestic JS example by changing its viewPreset to above code and calling scroll to now in console.

Can you please let us know how to scroll to current time without changing the headers?


Post by saki »

Actually you've discovered a bug. Thank you for reporting, the ticket is here: https://github.com/bryntum/support/issues/1564


Post by kirans »

Thanks.
I also see this error in console. It does not happen all the time. I don't know what causes it so cannot provide
reproduction steps. Since its somewhat related to ScrollToNow - please see if you can solve by code review (v3.1.9):

scheduler.module.js?7d42:7788 Uncaught (in promise) Error: Incorrect type for Rectangle.x, got "undefined" (expected a Number)
    at Function.assertNumber (scheduler.module.js?7d42:7788)
    at new Rectangle (scheduler.module.js?7d42:10262)
    at Scheduler.scrollToDate (scheduler.module.js?7d42:103646)
    at Scheduler.scrollToNow (scheduler.module.js?7d42:103646)
    at eval (SchedulerTab.vue?569f:476)

Post by saki »

Well, the first step of fixing something is to reproduce it with some definite steps. So if some obvious problem will be found while fixing that ticket then this problem will get fixed too, yes.

Otherwise we need to have a showcase that demonstrates the problem, or steps to reproduce with our demos.


Post Reply