dhtmlxgrid open/close subrow affects height of grid row

Hello,

I have dhtmlxgrid 3.5 and using the sub_row feature. However, each time I open and close the “plus sign” in a grid row, the height of the row keeps changing higher and higher. Please guide me how to fix this issue.

Thank you very much,
Hungnd

Unfortunately the issue cannot be reconstructed locally.
If it’s still occurs for you - please, provide with any kind of sample of your code or a demo link, where the issue can be reproduced.

We can reproduce this error on your sample page:

dhtmlx.com/docs/products/dhtmlxG … brows.html

If you expand collapse a sub row by clicking the plus/minus icon several times, it will slowly grow in height.

That issue was fixed in dhtmlx 4.
Please, try to update your dhtmlxgrid.

I don’t think tis is completly solved in the latest version. We recently bought dhtmlxSuite v.4.0.3 Professional edition, and experience this issue. I can pinpoint the lines which causes the problem:

\sources\dhtmlxGrid\codebase\excells\dhtmlxgrid_excell_sub_row.js
line:

dhtmlXGridObject.prototype._detectHeight=function(d,td,h){

264: td.style.height=(row.oldHeight||20)+3+h*1+“px”; //This causes the problem with height increase

dhtmlXGridObject.prototype._expandMonolite=function(n,show,hide){

110: td.style.height=(row.oldHeight||20)+“px”; //This causes the problem with height increase

The problem was already fixed.
If the issue still occurs for you please, open ticket at support.dhtmlx.com and we’ll provide you with the fixed version.