Grid's height in split mode

I need to resize a grid which contains split.
I found this topic:

but in the answer from Stanislav there’s empty


. Was something there?

I tried to simply add .setSizes() but it doesn’t have any effect on grid’s height.

How to change the grid’s height in split mode?

Here is the repaired post from the linked topic:

In split mode, the structure of grid’s container is more complicated, and direct change will not work as you wish. You can have layout like next

<div id="gridsize" style='width:100px; height:100px'>
<div id="gridbox" style='width:100%; height:100%'></div>

Now you can init the grid in #gridbox, and when necessary to change size you can just change styles of #gridsize and call grid.setSizes() to readjust grid to the new sizes. It must work in both normal and split modes.

Also the original topic post is repaired now

1 Like