jbaysolutions / vue-grid-layout

A draggable and resizable grid layout, for Vue.js.
https://jbaysolutions.github.io/vue-grid-layout/
MIT License
7.1k stars 1.5k forks source link

Responsive Layout #177

Open wydingez opened 6 years ago

wydingez commented 6 years ago

When will you be able to complete the responsive layout in the todolist?

gmsa commented 6 years ago

I have no idea yet how to implement that and no free time right now. Feel free to submit a PR.

somombo commented 6 years ago

https://codepen.io/SitePoint/full/yoyXoM/

and https://developer.mozilla.org/en-US/docs/Web/API/Window/matchMedia

patchwork-systems commented 6 years ago

Would adding some additional props to the grid items (smallX, mediumX, largeX instead of just x) then setting up a window.matchMedia() on grid-layout to swap between the different sizes work? If so I could probably get something working.

@gmsa