euvl / vue-js-grid

:bento: Vue.js 2.x responsive grid system with smooth sorting, drag-n-drop and reordering
https://euvl.github.io/vue-js-grid/
MIT License
951 stars 109 forks source link

Unable to set grid width based on parent of grid #28

Open adoniskrasniqi opened 5 years ago

adoniskrasniqi commented 5 years ago

Grid is being displayed out of its parent, since it has a width which is based on window width (as far as i can see), instead of parent's width. I can't seem to find on the docs any way to even set a fixed grid width.

ossipov commented 5 years ago

Was also struggling with this one :( Looks like there is an option to use gridWidth https://github.com/euvl/vue-js-grid/pull/12

But for some reason it only works when adding component directly from github 🤷‍♂️ yarn add https://github.com/euvl/vue-js-grid

hope that helps

elektrolytmangel commented 4 years ago

This solution works also for me. Propably yarn or npm are not up to date?