Dash Ag Grid - Responsive Size to Fit with Sidebar

Hi,
When using sidebar and responsive size to fit closing the sidebar doesn’t resize the columns leaving a blank space to the side. Is this a feature or a bug and is there anyway round this?
Thanks!

Hello @RConvex,

In lieu of using responsiveSizeToFit, I’d recommend instead using flex in your column defs, and leave the size as default.

This should react to any number of changes to your grid, it also allows you to alter the columns to be different chunks of the available space by using 1, 2, to any number. Where 1 represents 1 chunk, and 2 being 2 chunks, and so on.

1 Like

Thank you @jinnyzor, will have a play!

1 Like