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

Preset switching in Vertical mode issue #6876

Closed
matsbryntse opened this issue May 30, 2023 · 0 comments
Closed

Preset switching in Vertical mode issue #6876

matsbryntse opened this issue May 30, 2023 · 0 comments
Assignees
Labels
bug Something isn't working forum Issues from forum high-priority Urgent to have fixed OEM OEM customer resolved Fixed but not yet released (available in the nightly builds)
Milestone

Comments

@matsbryntse
Copy link
Member

Forum post

Hi,

I have implemented the vertical mode of the scheduler and encountered an issue when switching between view presets. In my project, I use React, but I have been able to reproduce it using the regular JavaScript version on the bryntum website as well.

My issue is as follows:
Start the vertical view in anything but a day view (e.g., week, month, etc.).
Switch to a day view.
A null pointer will occur (same line of code as: error-bryntumcom-example.png)

When you debug this, you'll notice that the rows will go above the resources "header," and a different calculation to account for this will be triggered. It's this calculation that gives a null pointer exception (see: error-bryntumcom-example.png).

Notes:
In my React app: The error doesn't occur when you start on a day view but will occur if you switch from this view to another view and then back to a day view.
In the example: The error doesn't occur every time but comes up only after using it for a while (not sure why precisely).

Error recreation
I have been able to recreate the error by adding the view switching logic from the configuration example to the vertical view example (just to keep it as vanilla as possible).

Another issue you'll notice is that the time axis on the right can get "stuck" when switching presets (see stuck-on-switch-preset.png). Usually this will correct itself after a you switch a few times between different presets.

Hope you can help me out with this one, and thanks!

Regards,

Coen
stuck-on-switch-preset.png
error-bryntumcom-example.png

@matsbryntse matsbryntse added bug Something isn't working high-priority Urgent to have fixed forum Issues from forum OEM OEM customer labels May 30, 2023
@matsbryntse matsbryntse self-assigned this May 30, 2023
@matsbryntse matsbryntse added ready for review Issue is fixed, the pull request is being reviewed resolved Fixed but not yet released (available in the nightly builds) and removed ready for review Issue is fixed, the pull request is being reviewed labels May 30, 2023
@matsbryntse matsbryntse added this to the 5.3.7 milestone May 30, 2023
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 high-priority Urgent to have fixed OEM OEM customer resolved Fixed but not yet released (available in the nightly builds)
Projects
None yet
Development

No branches or pull requests

1 participant