We have a scheduler which shows events on a timeline. These are sorted in date order. We have added the functionality that when a user clicks on an event, it then shows the sub-events for that main event (sub-events are not shown initially).
We need the sub-events to show directly below the event that was clicked.
This generally works fine except, if the scheduler, when rendering the main events decides to be “clever” and reposition an event higher in the chart because it can fit it in. Then, if we click the event, the sub-events to not appear directly below but appear lower in the chart, where the main event would have appeared if the scheduler had not been “clever”.
Is there a way to stop scheduler fitting events in higher up the chart, so all events display strictly in date order?