Login Register

Grid inside initially closed TitlePane does not display when the TitlePane is opened

Hello,

I have a grid inside a TitlePane with several buttons below the grid. If I start with the TitlePane open everything works ok. Opening and closing shows and hides the grid and the buttons. If I start with the TitlePane closed there is a problem. Opening and closing the TitlePane only shows the buttons, the grid does not display. I checked Firebug and the grid has a width and height of 0px or 1px.

What do I need to do to have the grid show when starting with a closed TitlePane?

Thank you for your help

You'll need to call

You'll need to call grid.resize() at a moment when grid.domNode has the correct height and width, like when the TitlePane is first opened.