Gridster Portrait relayout

207 Views Asked by At

I'm using angular-gridster2 to display a grid, I'd like it to shrink the number of columns and attempt a best fit relayout when the user rotates screen. I can update maxCols and reduce the size of widgets but it doesn't seem to respond, is this not a common use for the library? Is there any alternative?

1

There are 1 best solutions below

0
Bhavesh Ajani On

You need to trigger the resize event where you need it.

this.options.api.resize()

I hope it is helpful to you.