Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by agathaschmitz on Jan 30, 2009 01:28
open dhtmlx forum
layout - grid size

hello support team...

in my layout there's one cell containing a attached grid (using .attachGrid()). almost everything works find except in the case i'm using ie and loading a grid with a number of rows where a vertical scrollbar is needed. unfortunatly also a horizental scrollbar occurs. if the user now clicks on the cell splitter the grid correctly adjusts it's size to fit the cell dimensions.

i'm trying to call the setSizes functions but somehow i does't get it to work. also adding a line of code to change the dimensions of the grid to get the same effect doesn't work.

How do i call the function which is triggered by a click on the splitter?

Thanks!



Answer posted by Support on Jan 30, 2009 01:33
Layout uses the same setSizes method

    this._updateComponentsView = function(win) {
        if (win.grid != null) { win.grid.setSizes(); win.grid.setSizes(); }