Extraneous blank cells by combining options

Hello,

The following snippet doesn’t work (doesn’t correctly display timeline view) but it’s a copy/paste representing my configuration:

docs.dhtmlx.com/scheduler/snippet/7351741e

With DHTMLX 4.2.1 (at office so not very new so I would have loved snippet to work to test against last stable version) I noticed the following bug:

When ignore_timeline function filters displayed hours, tree mode displays one empty TD cell of width 0px or 1px, for every filtered hour, but only for tree section title row, in my snippet the “Production Department” and “Sales and Marketing” lines. So the sections title lines will have extra blank space.

My css workaround:

table.dhx_data_table.folder>tbody>tr>td:not(.dhx_matrix_cell) {
    display: none;
}

Thanks for helping,

B. Post

Sorry, version error : we use DHTMLX 4.3.1 for scheduler and 4.2.1 for everything else.

Hello.

You could try to set needed color to td in this case.
For example using css rule like following:

folder td{
  background-color: #969394;
  border-bottom: 1px solid #CECECE;
}

docs.dhtmlx.com/scheduler/snippet/2dad6bc0

Hello Sten,

Interesting, I tried your solution but there is a very tiny visual glitch, the TDs are now in right color but there is an extra pixel at bottom of the TD. All the TDs have no border nor margin.

/* scheduler timeline view in tree mode */
.dhx_data_table.folder .dhx_matrix_cell, .dhx_data_table.folder td, .dhx_matrix_scell.folder {
    background-color: #067FB8;
	color: white;
}

B. Post

In this case you could try to add also css rule like following:

.dhx_matrix_scell.folder{
	border-right-color: #969394;
}

See example:
docs.dhtmlx.com/scheduler/snippet/911310f2

Fine and everything is great like this, so the final CSS with my custom color:

[code]
.folder td {
background-color: #067FB8;
border-bottom: 1px solid #CECECE;
}
.dhx_matrix_scell.folder {
border-right-color: #067FB8;
}

[code]

Thanks Sten.