grid from table does not shrink to the container

Code(simplified)















<?php

$i=0;

while (i<55)

{

echo “”;

}





?>



Header A Header B
”;

echo $i;

echo “


















when populating the table although the scrollbars show they exceeds way past the height of the div. I think I tried everything and I am stuck,



Thanks a lot

When grid initialized from table - it takes the same sizes as original table.
You can
a) provide fixed sizes
    <table id=“some_table” height=“200” gridHeight=“50px”>

or
b) force grid autosizing
    var mygrid = dhtmlXGridFromTable(“some_table”);

    mygrid.enableAutoHeight(true,“auto”);
    mygrid.setSizes();