vue-grid-layout icon indicating copy to clipboard operation
vue-grid-layout copied to clipboard

Scaling-prop and calculation

Open plc-dev opened this issue 4 years ago • 3 comments

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.

plc-dev avatar Jan 09 '21 19:01 plc-dev

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

vishaldodiya avatar Feb 04 '21 06:02 vishaldodiya

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.

afterlifenirvana avatar Feb 10 '21 05:02 afterlifenirvana

passed the scale arguement to the grid item.

afterlifenirvana avatar Feb 10 '21 06:02 afterlifenirvana