Our pure JavaScript Scheduler component


Post by Steveoo61 »

hi,

OS: windows 10
Browser: brave

Use case1 (no horizontal scoll :
-open working time example
- set view preset below:
scheduler.setViewPreset({
                    displayDateFormat: 'H:mm',
                    tickWidth: 27,
                    shiftIncrement: 1,
                    shiftUnit: 'WEEK',
                    timeResolution: {
                        unit: 'MINUTE',
                        increment: 60
                    },
                    headerConfig: {
                        middle: {
                            unit: 'HOUR',
                            align: 'center',
                            dateFormat: 'H'
                        },
                        top: {
                            unit: 'DAY',
                            align: 'center',
                            dateFormat: 'ddd L'
                        }
                    }
                },new Date("01/28/2019"),new Date("02/4/2019"))
- set to day to 7

we can't perform horizontal scroll and date is truncate to saturday 12 pm
bug working time 2.PNG
bug working time 2.PNG (21.99 KiB) Viewed 1733 times
use case timeaxis do not back to original size:
-set from day to 0
-set to day 7
- set view preset below:
scheduler.setViewPreset({
                    displayDateFormat: 'H:mm',
                    tickWidth: 27,
                    shiftIncrement: 1,
                    shiftUnit: 'WEEK',
                    timeResolution: {
                        unit: 'MINUTE',
                        increment: 60
                    },
                    headerConfig: {
                        middle: {
                            unit: 'HOUR',
                            align: 'center',
                            dateFormat: 'H'
                        },
                        top: {
                            unit: 'DAY',
                            align: 'center',
                            dateFormat: 'ddd L'
                        }
                    }
                },new Date("01/28/2019"),new Date("02/4/2019"))
- set to day and from day to default data (1,6)

at the right of sceduler we can scroll with out header
bug working time 1.PNG
bug working time 1.PNG (11.69 KiB) Viewed 1733 times

Post by mats »

Scheduler version?

Post by Steveoo61 »

2.0.3

Post by pmiklashevich »

Doesn't work in Brave only? Have you tried in Chrome or Firefox? I've just tried here in Chrome https://www.bryntum.com/examples/scheduler/workingtime/
Both usecases work fine.

UPDATE: UseCase1 is not reproducible but UseCase2 is. Ticket here: https://app.assembla.com/spaces/bryntum/tickets/8545-working-time-demo--timeline-is-broken/details

Pavlo Miklashevych
Sr. Frontend Developer


Post by Steveoo61 »

reproduced on chrome with UseCase1
Use case1 (no horizontal scoll :
-open working time example
- set view preset below:
scheduler.setViewPreset({
                    displayDateFormat: 'H:mm',
                    tickWidth: 27,
                    shiftIncrement: 1,
                    shiftUnit: 'WEEK',
                    timeResolution: {
                        unit: 'MINUTE',
                        increment: 60
                    },
                    headerConfig: {
                        middle: {
                            unit: 'HOUR',
                            align: 'center',
                            dateFormat: 'H'
                        },
                        top: {
                            unit: 'DAY',
                            align: 'center',
                            dateFormat: 'ddd L'
                        }
                    }
                },new Date("01/28/2019"),new Date("02/4/2019"))
- check scheduler.endDate
Fri Feb 01 2019 17:00:00 GMT+0100

-set working time
scheduler.workingTime = {fromDay:0, toDay:7, fromHour:8, toHour:17}
-check scheduler.endDate
Sun Feb 03 2019 17:00:00 GMT+0100

timeaxis stop to sunday 10am, but endDate is set to new Date("02/4/2019") in setViewPreset

Post by pmiklashevich »

Hello,

Thanks for your input! Reproduced as you said, and also in a bit different way. Seems my approach is closer to what you see according to the screenshot you provided. Ticket here: https://app.assembla.com/spaces/bryntum/tickets/8549-working-time-demo--timeline-is-broken-when-day-preset-and-small-width-screen/details

Best,
Pavel

Pavlo Miklashevych
Sr. Frontend Developer


Post by Steveoo61 »

up

long time this issue is open and it's an important fix for me

Post by mats »

We'll try to look at this issue in August/September

Post Reply