layout problem in expanding grid items at the right most side
Please see screenshot, when all the other grid items expansionedperfect except the last column on the rightmost side.
https://codepen.io/robertwong68/pen/rzJydV
Thanks for reporting this issue. This is indeed a bug. I'll have to investigate.
Hello David, thanks so much for your lovely library! Overall Packery is a real dream and makes for an excellent drag and drop game for teaching kids to unscramble words! But I am having trouble with far right hand drags/throws as well. To the left all is beautiful, you can't glitch it no matter how hard you try 👍 But when throwing the same items toward the right side, I get glitchy behavior where the grid doesn't seem to know what its size is. I'll attach a screenshot of the regular behavior after throwing/dragging left, then a couple that show what happens when you've done that on the right. I've tried applying every workaround I can think out from your layout api, and nothing has helped.
In the last one you can see how the letters have dropped down below instead of lining up horizontally.
@mspanish Sounds like you may be interested in the previous dragging behavior with Packery v1. v2's drag behavior was designed to be less frustrating for Masonry grid dragging, but unfortunately I did not anticipate that the v1 behavior was still useful for your kind of applications. I do have an issue open for it #353. I hope to resolve this issue eventually. Until then, you can try downgrading to Packery v1 to see if this improves.
@desandro thanks I'll try that 👍
Hello @desandro "when all the other grid items expansioned perfect except the last column on the rightmost side." Do you have time to help fixing this one ? Thanks.
@robertwong68 Can you please open a new issue with a reduced test case. See Submitting Issues in the contributing guidelines.
Please find below the reduced test case, this is the problem I have if I click the top row 2nd item from the right (the square one). All other items work except this one.
https://codepen.io/robertwong68/pen/ZvgWKN
@robertwong68 Thanks for that. Yes, this does look to be a bug. I'll have to take a look.
One solution is to use layout instead of shiftLayout.