Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to call shiftLayout on packery instance #42

Open
jrdn91 opened this issue Aug 12, 2016 · 0 comments
Open

How to call shiftLayout on packery instance #42

jrdn91 opened this issue Aug 12, 2016 · 0 comments

Comments

@jrdn91
Copy link

jrdn91 commented Aug 12, 2016

I'm a bit confused as to how to call shiftLayout on the packery instance. I have a listener on the dragStart and dragEnd events of Draggabilly to shrink the height of all elements to make them easier to drag and then once it's done bring the heights back to full. But when this happens I need to have packery shift the layout like their animation example so that everything shifts up to one another. How am I supposed to call this on the instance?

I have the packery data set to a scope property like so

$scope.packeryInstance = angular.element('.packery-wrapper').data('Packery');
$($scope.packeryInstance.element).on('dragStart',dragStartListener);
$($scope.packeryInstance.element).on('dragEnd',dragEndListener);

But in my listeners I can't figure out what the proper way to call the shiftLayout method is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant