Angular-gridster2: Change grid layout system to CSS Grid Layout

Created on 24 Jan 2018  路  6Comments  路  Source: tiberiuzuld/angular-gridster2

Remove all grid layout system and move to https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout

The only calculations of positions, columns and rows should be for drag and resize.

This will be a breaking change and will require a major version.

enhancement

Most helpful comment

Will try to support all browsers which support it https://caniuse.com/#feat=css-grid
I cannot promise that IE11 will be supported till I am finished, but will try to do so.

All 6 comments

Sounds like a good idea! Just a note, we and many others unfortunately need to support Internet Explorer 11 into the future while trying not to fall behind on our version of Angular. Thus it would be great if you could implement this with an eye toward maintaing IE11 compatibility (i.e. including -ms- prefixed CSS properties in addition to normal grid- properties, and testing for compatibility). Thanks!

Will try to support all browsers which support it https://caniuse.com/#feat=css-grid
I cannot promise that IE11 will be supported till I am finished, but will try to do so.

Sounds good, thanks!

TODO:

  • [x] render all gridTypes with the new layout
  • [x] make resize work

  • [x] make drag work

  • [x] make mobile view work

  • [x] fix element size on resize when grid changes size

  • [ ] test IE 11 and try to make it work. Update: not possible.

  • [x] cleanup code and remove any unnecessary code

IE11 support is not possible with CSS Grid. Sorry guys.
Mainly because grid-auto-rows, grid-auto-columns and grid-gap is not supported.
You will have to drop support for IE11 or continue to use the 4.x version of the grid.
Should continue to work with angular 6.

OK, too bad. As long as the 4.x version continues to work with Angular should be OK though. Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tiberiuzuld picture tiberiuzuld  路  3Comments

aren5a picture aren5a  路  5Comments

dhaniksahni picture dhaniksahni  路  4Comments

samarsiraj picture samarsiraj  路  3Comments

CollinGraf314 picture CollinGraf314  路  3Comments