Event name missing when switching days in scheduler
Posted: Wed Nov 23, 2022 6:00 pm
by natalija
Hello!
I am encountering a problem with event names when switching days in the scheduler.
Sometimes the event name which starts on the previous day or continues to the next day does not have the event name or the name is partially visible. My code is using "shiftPrevious" or "shiftNext" functions to switch between days.
Could you please advise me on how to fix this?
Re: Event name missing when switching days in scheduler
scheduler.shiftNext()
// and
scheduler.shiftPrevious()
in different order and I don't see that problem. Maybe some specific configuration required?
Please try to reproduce it with our demos and provide steps to reproduce.
If required, apply minimal changes to our example and share with us.
Or zip and attach a test case that we could run and debug.
Re: Event name missing when switching days in scheduler
When a new event is created which starts outside the visible date and continues in the visible date, the event name doesn't show up after saving. Only after clicking to create another new event the name shows up.
Re: Event name missing when switching days in scheduler
Posted: Thu Nov 24, 2022 2:07 pm
by Animal
Seems like position:sticky doesn't activate until a scroll happens. I will experiment if there's anything which we can do to "wake up" the DOM and get it to stick the event inner element correctly.
Re: Event name missing when switching days in scheduler
Posted: Thu Nov 24, 2022 3:37 pm
by Animal
This is the incantation:
e = scheduler.getEventElement(newEvent).firstChild;
e.style.position='static';requestAnimationFrame(() => e.style.position='');
That kicks stickiness into life. We need some equivalent in the event rendering pipeline.
Re: Event name missing when switching days in scheduler
Posted: Fri Nov 25, 2022 12:18 pm
by natalija
Could you please show more explicitly using the demo where this code piece should be included? And can you explain what is meant by newEvent?
Re: Event name missing when switching days in scheduler