jbaysolutions/vue-grid-layout

Responsive Contribution

Aberta

#196 aberto em 29 de jun. de 2018

 (4 comentários) (0 reação) (0 responsável)JavaScript (1.436 forks)batch import
help wanted

Métricas do repositório

Stars
 (6.777 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

I commented a few days ago on issue #177 .

I think I have a way to add a responsive element into this package.

The basic idea is to add a few new properties to grid-item (smallH, smallW, mediumH, mediumW, largeH, largeW) that will allow users to assign different widths and heights based on screen size. grid-layout can then be modified to use matchMedia (https://developer.mozilla.org/en-US/docs/Web/API/Window/matchMedia) and resize the grid-items as needed. Would this be an acceptable solution?

Guia do colaborador