Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage of TravelTime and TimeAxis filter result in strange snap to grid #5686

Open
marciogurka opened this issue Nov 30, 2022 · 0 comments
Open
Labels
bug Something isn't working forum Issues from forum

Comments

@marciogurka
Copy link

Forum post

"Hi,

When using travelTime in events and a filter on the timeAxis together, the snap to grid feature of the scheduled events change. Somehow the events seem to consider the travelTime as well, but this does not feel very intuitive.
I was able to recreate this behavior by changing the travel-time demo from the scheduler examples and adding the following in tbar:

        
        {
            type    : 'slidetoggle',
            label   : 'Filter non-working times',
            color   : 'b-blue',
            checked : false,
            onChange({ checked }) {
                if (checked) {
                    scheduler.timeAxis.filter((t) => new Date(t.startDate).getHours() > 6 && new Date(t.startDate).getHours() < 18);
                } else {
                    scheduler.timeAxis.clearFilters();
                }
            }
        }
        

As soon as the filter is enabled, the events do snap strangely when moving."

If you check the video, see how the event "moves" to the left as soon as we drop the event when we don't have the non-working time.

Bryntum.Scheduler.Pro.-.Travel.time.demo.-.29.November.2022.mp4
@marciogurka marciogurka added bug Something isn't working forum Issues from forum labels Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forum Issues from forum
Projects
None yet
Development

No branches or pull requests

1 participant