Hi,
I have a layout in which I have attached a grid using attachObject (not attachGrid). I cannot use attachGrid because of certain reasons.
In layout panel, I will be attaching 2 things
- a div tag representing a toolbar (not a dhtmlx component)
- a dhtmlxgrid is attached below the toolbar and this is done using attachObject
2a) we are achieving the above by having a container div tag, which houses 2 divs - 1 for toolbar, another for grid. - On panel resize event, we are calling grid.setSizes.
The problem is that whenever panel is resized, the grid is not auto resized. For e.g., if the panel height is reduced, we expect the grid to be displaying vertical scrollbar. But that is not happening.
Interestingly, if I remove the first div tag (the one for toolbar), the grid auto resizes properly. Please let us know if there is a way to make this work.
I have attached a code snippet for you to replicate this problem. To make the code snippet simple enough, instead of a toolbar I have a simple div tag with “hello world” text.
mockup-v2.2_layout-problem.zip (732 KB)