Angular-gridster2: Grid without vertical scroll

Created on 28 Feb 2018  路  4Comments  路  Source: tiberiuzuld/angular-gridster2

There is a way to make the grid growing vertically without vertical inside scroll?
Basically, I wanna a full page scroll instead. In the original version, the grid height grows based on the rows generated (the grid height was updated programmatically).

question

All 4 comments

Hi @skarface ,

Currently that is not possible because the items are positioned absolute.
This way the gridster element doesn't have any content height.
That is why the gridster has set 100% height of the parent container.

In version 5.x after the migration to CSS Grid this will be possible.

Thanks

Hu @tiberiuzuld,
Thanks for your answered.
I can set the parent height programmatically based on the rows numbers.
Do you know it is an easy way to get the current grid rows number?

From the initCallback of the grid you get the gridster component
On the component is set the property rows which is the total rows in grid.
You need to get it each time it changes so on each itemChangeCallback

Great @tiberiuzuld, thank you very much for the help.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tiberiuzuld picture tiberiuzuld  路  3Comments

ddegasperi picture ddegasperi  路  4Comments

dnbo picture dnbo  路  4Comments

Konstruktour picture Konstruktour  路  5Comments

leandro-ali-elel picture leandro-ali-elel  路  4Comments