Dear Support,
I create a grid within a layout object (two cells: a,b). I set heigth of the grid dynamically. The layout object does not resizes itself according to the grid object. I use code below.
dBrow.enableAutoWidth(true);
dBrow.enableAutoHeight(true,iheight);
dBrow.setSizes();
contObje.getDLayout().setSizes();
How can I dynamically resize a layout cell according to the grid height?
Hello
you can try to use the following approach
dBrow.enableAutoHeight(true,iheight);
dBrow.loadXML(“some.xml”,function(){
layout.cells(“a”).setHeight(dBrow.entBox.offsetHeight);
})
Where layout.cells(“a”) is layout cell where grid is attached. This approach will work, if cell “a” can change the height (if you use 2E layout).
In case of 2U pattern you should change the height of the container where layout is initialized and then call layout.setSizes() method.