Hi everyone!
I’m trying to add some functionalities to my timeline chart created using the Fullcalendar.io library.
The only thing I haven’t been able to do is to force the dates header to be sticky. This issue seems to appear only on Bubble. As you can see in the screenshots below, the header is not visible once scrolling past it:
While if we try to test the exact same code on Codepen, it works just fine.
Is there anything that changes the behaviour of sticky CSS elements in the Bubble engine? So far, I have tried:
- Moving the element from a reusable element to the top of the page tree.
- Changing the height of the HTML element (fitting it, setting it to fixed 100%, setting it to a minimum of 0 and a max of Infinite).
- Adding custom CSS properties to the header selector (.fc-scrollgrid-section-sticky) to force it to be sticky using “!important”.
- Dynamically setting the header display property to “absolute” once scrolling past it with an event listener, but this solution messes with the header position, scrolls it back to the first date and makes it difficult to use.
But none of those worked. Please note that the original code I intend to use is far more complex and contains lots of CSS and external functions, but I removed them to simplify the example. The code still behaves the same way nonetheless. It would be very important for my client to have a sticky header as it would massively help with charts that contain lots of resources.
Thanks!
~ Matteo.