Angular-gridster2: Question: setGridSize

Created on 8 May 2018  路  6Comments  路  Source: tiberiuzuld/angular-gridster2

I was playing around with setGridSize, and all it really seems to do is force any gridType to behave like gridType: 'fit'.

Isn't the expected functionality of setGridSize to enlarge the grid itself, and leave the gridster-items sizes untouched?

bug

Most helpful comment

Hi @CollinGraf314 ,
There was a bug and the option setGridSize was not working correctly.
Fixed now in v6.0.2
The option will set the gridster width and height depending on the content, usable if you want to have a page scroll and not a scroll in gridster.

Let me know if you find any more issues.

Thanks

All 6 comments

Hi @CollinGraf314 ,
There was a bug and the option setGridSize was not working correctly.
Fixed now in v6.0.2
The option will set the gridster width and height depending on the content, usable if you want to have a page scroll and not a scroll in gridster.

Let me know if you find any more issues.

Thanks

Thank you! I updated and now it works like a charm

Maybe related to this - I've enabled setGridSize since I want to use page scroll. The grid needs to remain responsive though. When making the browser window smaller the grid resizes as expected, but when I make the window wider the applied width won't increase anymore.

Is this something you can reproduce?

I am using setGridSize with a gridType of verticalScroll and it works fine for me. If you could make a stackblitz reproducing the issue I could take a look.

After some refactoring I can't reproduce the issue anymore ^^
Sorry for the stir up

Hi all, i found one issue by setting setGridSize to true, griditems doesnt resize on window resize anymore.
I am using this option with gridType of verticalFixed.
Can anyone please help.
i have created reproducible demo for the same demo

Was this page helpful?
0 / 5 - 0 ratings