dhtmlxGrid + dhtmlxToolbar in dhtmlxLayout problem

Hello,

I have a layout which contains toolbar and grid in split mode. Whithout toolbar no problem occurs and all works nice, but if I add toolbar then bottom horisontal scroll bar of grid becomes invisible because of toolbar height offset. I use 2.5 pro version. My code is:

var descrToolbar = descrLayout.cells(“a”).attachToolbar();

var descrGrid = descrLayout.cells(“a”).attachGrid();
descrGrid.init();
descrGrid.splitAt(1);
descrGrid.loadXML(“descr.php?nodeId=” + currentCatalogId);

Please advise how it can be fixed.

Thank you.
Regards,
Alex.

Which version of dhtmlxLayout you are using?
In case of older version, adding
layout.cell(“a”).updateNestedObjects();
must resolve issue.

dhtmlxLayout and dhtmlxToolbar 2.5 Standard, dhtmlxGrid - 2.5 Pro.
All these components included into Tabbar 2.5 Pro.

Method descrLayout.cells(“a”).updateNestedObjects() didn’t help.
Please advise.

Thank you.
Regards,
Alex.

Just fixed it with mootools:

h = $$(’.dhxcont_global_content_area’).getLast().getStyle(‘height’).toInt() - 27; // 27 - toolbar height
descrGrid.enableAutoHeight(1, h, 1);

Thanks.