desandro / draggabilly

:point_down: Make that shiz draggable

Home Page:https://draggabilly.desandro.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Draggabilly drop target with Packery is always the first item's size

qJake opened this issue · comments

When using Draggabilly with Packery, the drop grid is always set to the first item's size, even if that item is a "2x" or "3x" item.

I don't see anywhere where I can define an explicit grid size (which is what I basically want to do).

I have also tried creating a "fake" first element set to the correct grid size, initializing Packery and Draggabilly, and then deleting that element - but that doesn't work, either.

Reproduce pen: https://codepen.io/qJake/pen/ZEzaQbQ

Pen with the correct behavior - exactly the same, except lines 3 and 4 are swapped: https://codepen.io/qJake/pen/pozdgbJ

My goal is to have an explicit grid of size X by Y, regardless of the first elemnet. How can I achieve this?

Posting to both Draggabilly and Packery repos since I'm not sure which is the culprit here - Draggabilly handles dragging, but the drop target says packery-drop-placeholder. Please close whichever repo issue is not correct, but please don't close both! 😁Ref: metafizzy/packery#533

Closing, issue resolved in metafizzy/packery#533.