setStyle (row height) and selectRow().

Hi.

I changed height and line-height of the grid row with the setStyle() method. After this change, the selectRow() method is no longer correctly positioning the selected row in the visible area of ​​the grid. What can I do to fix this?

I used material skin.

grid.setStyle(“border: 1px solid silver;background-color: darkslategray;”, “height:24px;line-height:24px;border:1px solid silver;font-size: 12px;”, “”, “background-color: #23c6c8”);

Unfortunately the problem cannot be reconstructed locally.
Your provided setStyle line works well for me locally.

Are you using the smart rendering in your grid?
in this case you need to fix the changed row height using the setAwaitedRowHeight() method:
docs.dhtmlx.com/api__dhtmlxgrid … eight.html
If the problem still occurs for you please, provide a demo link or a complete demo, where the problem can be reconstructed, so the proper solution can be provided.

While I was creating the example, I realized that the error occurred because the first column had the attribute hidden = ‘true’. I removed this attribute and it worked.

Thank you.