Posted 14 April 2020, 2:16 am EST
We are currently using Wijmo 5.20192.631 for components (and Angular 7).
We face a problem with the FlexGrid component using FrozenCell.
Let me briefly explain the issue with an exemple :
- We have modified the style (css) in order to change the background color of a row when the mouse is hover a cell of this row.
- This style works on Chromium browser but not on other ones :
=> the style is not applied on frozen cell.
To give you a reproduction context, let’s modify a bit the source code of this exemple :
https://www.grapecity.com/wijmo/demos/Grid/Columns/Freezing/angular
as follow :
.wj-flexgrid {
max-height: 250px;
margin: 10px 0;
}
/* style frozen cells */
.wj-cell.wj-frozen:not(.wj-header):not(.wj-group):not(.wj-state-selected):not(.wj-state-multi-selected),
.wj-cell.wj-frozen.wj-alt:not(.wj-header):not(.wj-group):not(.wj-state-selected):not(.wj-state-multi-selected) {
background: rgb(255,255,125);
}
[wj-part=‘root’] >.wj-cells > .wj-row .wj-cell {
// we have no choice with your exemple to use !important because if we remove background: rgb(255,255,125);
// then the yellow color is still applied.
background-color: white !important;
}
// I applied the same style to stress the problem
[wj-part=‘root’] >.wj-cells > .wj-row:hover .wj-cell,
[wj-part=‘root’] >.wj-cells > .wj-row .wj-cell[aria-readonly=‘true’]:hover,
[wj-part=‘root’] >.wj-cells > .wj-row .wj-cell[aria-selected=‘true’]:hover,
[wj-part=‘root’] >.wj-cells > .wj-row .wj-cell.wj-state-multi-selected:hover,
[wj-part=‘root’] >.wj-cells > .wj-row .wj-cell.wj-frozen:hover,
[wj-part=‘root’] >.wj-cells > .wj-row .wj-cell.wj-alt.wj-frozen:hover
{
background-color: black !important;
}
I tried to understand where from this problem.
I checked the flexgrid’s elements and one element got my attention :
We can stress this problem by adding this on firefox :
[wj-part=‘fcells’], .wj-cells.wj-frozen-clone {
background-color: transparent !important;
display: none;
}
and then scroll …
My style cannot be applied because wj-part=“fcells” is not a children or sibling of wj-row.
(unless to add class by javascript but, at the moment, this is a no way as it work for one browser)
Why do you have such difference between browsers?
Did you plane to get the same behavior over all browsers?
If yes, which one is the good one? (chromium vs other)
Best regards