Categories | Question details Back To List | ||||||||
Change Grid Height on window resize I have the window resize function and I want to make sure the grid is resized to within the window. I have <div id="mygrid" style="overflow:auto"></div> and how can I change the Height of that grid upon window resize? I tried document.getElementById('mygrid').style.height = clientHeight but doesn't seem working on firefox, I just wonder if you actually got one that would easily done such as mygridObj.setHeight()? I looked up on the documentation but there are only the setInitHeight for initial height. Answer posted by Support on Oct 03, 2008 01:44 Grid can be adjusted to the size of surrounding container by using grid.setSizes() after document resize, the grid's container can be made auto-sizable by correct css style. Please check attached sample. Attachments (1)
|