Events being obscured in scheduler in day view.

Hello, I’m working on a peculiar issue with the scheduler control when dealing with the day view. A specific alignment of events seems to produce this issue of one of the events being obscured. In the attached picture, I’ve highlighted the event that’s being obscured. Oddly enough, if I change one of the events (D, E, or C in the attached picture.) the obscured event snaps into the gap between them and never snaps into the left most gap (A below, E to the right). I wonder if anyone else has encountered this before and how best to remedy the problem.


Hi,
please provide a JSON data, which can be loaded into the scheduler in order to reproduce the issue. I’ve tried to reproduce the event configuration by hand, but didn’t succeed.
Also, what version of the scheduler do you use? Is it the latest v4.3?

Currently, we’re using version 3.6 and have no means to upgrade at this time. Here’s the json for the events that is causing the issue below.

[
{
“id”: “4611686018428019026”,
“text”: “Appointment: 1 A. A”,
“start_date”: “2015-04-23 08:30”,
“end_date”: “2015-04-23 10:30”,
“details”: “Loading…”,
“textColor”: “”,
“color”: “”
},
{
“id”: “4611686018428019027”,
“text”: “Appointment: 1 A. B”,
“start_date”: “2015-04-23 08:30”,
“end_date”: “2015-04-23 10:30”,
“details”: “Loading…”,
“textColor”: “”,
“color”: “”
},
{
“id”: “4611686018428019028”,
“text”: “Appointment: 1 A. C”,
“start_date”: “2015-04-23 10:00”,
“end_date”: “2015-04-23 13:00”,
“details”: “Loading…”,
“textColor”: “”,
“color”: “”
},
{
“id”: “4611686018428019029”,
“text”: “Appointment: 1 A. D”,
“start_date”: “2015-04-23 11:00”,
“end_date”: “2015-04-23 12:00”,
“details”: “Loading…”,
“textColor”: “”,
“color”: “”
},
{
“id”: “4611686018428019030”,
“text”: “Appointment: 1 A. E”,
“start_date”: “2015-04-23 12:00”,
“end_date”: “2015-04-23 14:00”,
“details”: “Loading…”,
“textColor”: “”,
“color”: “”
},
{
“id”: “4611686018428019031”,
“text”: “Appointment: 1 A. F”,
“start_date”: “2015-04-23 12:00”,
“end_date”: “2015-04-23 13:00”,
“details”: “Loading…”,
“textColor”: “”,
“color”: “”
}
]

The bug seems to be fixed in the latest version
screencast.com/t/GzkYmb4Yk

So the recomended way would be to update to the latest version. If it’s not possible, you can try patch your version of the component.
Try redefining an inner scheduler._pre_render_events_line method with the one from 4.3.0, I think the related fix has been done there. The method should be compatible with an older version of the component
github.com/DHTMLX/scheduler/blo … r.js#L4074

Unfortunately, the patching of the _pre_render_events_line didn’t quite do the job. It completely removes the event from the screen instead of filling in the gap between event C and event D with event F (the one that’s obscured).

Correction on the placement of the event. Between C and E is what I meant.

Unfortunately it’s hard to tell then. If you have a support subscription - please open a ticket at support.dhtmlx.com
Since the initial gues didn’t work a solution will require debugging and comparing an old vs new versions and finding a difference in calculating of events position, which unlikely will be done on public forum.
If you’ll going to investigate the issue yourself, note that the relative positions within a day column is defined by two properties - event._sorder and event._count
._count - defines a number of ‘subcolumns’ which divides a day screencast.com/t/PrQDGpbId0
._sorder - in which subcolumn the event will be placed.
The v3.6 seems to get an one extra subcolumn.
These properties should be calculated in scheduler._pre_render_events_line , but probably there is some additional logic that may have changed since version 3.6