Hi,
I have a problem with grid scrollbars. I defined a grid with max height and AutoHeight true. Sometimes appears a useless horizontal scrollbar. It depends on a relation between number of rows and max height. Until the max height is less than the height of all the rows, a vertical scrollbar appears and it works fine.
If the max height is greater than the height of all the rows, the horizontal scrollbar appears.
I think the problem is related to the use of the vertical scrollbar.
In my simple example I load data in this way:
function load() {
var data = '<rows><head><column align="left" sort="str" type="ro" width="100">Col 1</column><column align="left" sort="str" type="ro" width="*">Col 2</column><settings><colwidth>px</colwidth></settings></head><row id="4516"><cell>test</cell><cell>test</cell></row><row id="4517"><cell>test</cell><cell>test</cell></row><row id="4518"><cell>test</cell><cell>test</cell></row></rows>';
var myGrid = new dhtmlXGridObject('gridbox');
myGrid.setImagePath("dhtmlxGrid/sources/dhtmlxGrid/codebase/imgs/dhxgrid_skyblue/");
myGrid.enableAutoHeight(true,73);
myGrid.parse(data);
}
load();
So there are 3 rows and a max heigth of 73. In this way everthing works fine, but if I set the max height to 74, an horizontal srcollbar appears.
I also attached the Example demo.
Thanks
test-dhxgrid.zip (1.52 MB)