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

Can i resize GridItem only from X or Y

Open mrKylinZhou opened this issue 7 years ago • 9 comments

I want to reset the size only from the X axis or the Y axis.

mrKylinZhou avatar Apr 19 '18 02:04 mrKylinZhou

This would be great if we can do this. I also need this.

hnviradiya avatar Apr 20 '18 10:04 hnviradiya

is this on the roadmap? my case i need user can only resize the grid only for x axis

eezhal92 avatar Apr 15 '19 01:04 eezhal92

It's not on the roadmap. Feel free to submit a PR

gmsa avatar Apr 15 '19 08:04 gmsa

Since this issue is similar to #76 and #316, I'll take a stab at addressing all 3.

It should mostly be a matter of exposing properties to configure the resize options for interactjs. https://github.com/jbaysolutions/vue-grid-layout/blob/9e13ea946bf226eb3303e99cfa195c79c8d3055c/src/components/GridItem.vue#L713

Watercycle avatar Apr 28 '19 18:04 Watercycle

@Watercycle , can you submit a PR?

gmsa avatar Apr 29 '19 08:04 gmsa

Yes. I'm aiming to have one up within the next week.

Watercycle avatar May 03 '19 23:05 Watercycle

Update (5/9/19): Not sure how to handle moving the grid item when the placeholder position gets changed by a layout recalculation.

Update (5/18/19): Everything seems to be working, but I still need to thoroughly test, expose it to the public API, document, and clean up commits for review. Apologies for taking so long. Every time something doesn't work I just set this aside for a few days 😅

Watercycle avatar May 10 '19 06:05 Watercycle

Hi, is there any update on this or has it been abandoned? Even dirty commits or something halfway working would be helpful in case someone else is able to complete it

jtenclay avatar Jan 07 '20 21:01 jtenclay

Hi, is there any update on this or has it been abandoned?

Flourad avatar Dec 21 '20 13:12 Flourad