vue-grid-layout
vue-grid-layout copied to clipboard
Scaling-prop and calculation
I have a use case where I am nesting a grid under a container that allows zooming and panning. To maintain the correct behaviour when dragging and resizing items, the zooming scale needs to be accounted for.
I've made a PR that implements a scale-property on the GridItem-component. On the resizing and dragging event-handlers the scale then gets applied.
I also have this use case and if it gets implemented then it would be a really nice feature.
Thanks @plc-dev for the commit. cc: @gmsa
I have a use case where I am nesting a grid under a container that allows zooming and panning. To maintain the correct behaviour when dragging and resizing items, the zooming scale needs to be accounted for.
I've made a PR that implements a scale-property on the GridItem-component. On the resizing and dragging event-handlers the scale then gets applied.
Hi. does this scaling this works ??. I tried using it in my project and passed the scale argument to the widget but still the resizing is not working as it should. i cannot reduce width of widget.
passed the scale arguement to the grid item.