Comments (5)
Thanks for the report! Could you provide a reduced test case for either issue? See Submitting Issues in the contributing guidelines.
from packery.
I might have a test case, the issue doesn't happen in isolation but in certain circumstances. http://rma-dash.herokuapp.com/
@pckry = $container.packery({
itemSelector: '.item',
gutter: 0
transitionDuration: "0.9s"
}).data('packery')
window.pckry = @pckry
itemElems = @pckry.getItemElements();
_(itemElems).each (elem) =>
draggie = new Draggabilly( elem );
This is applied in a timeout so that the bug is more visible.
from packery.
Ok, just realized that if you are setting item heights as %, the change of container's height(maxY) would break the layout.
For me commenting out this.element.style.height = elemH + 'px';
seems to fix the layout, but I am sure it would break some things.
@desandro what's the rational of setting container's height?
from packery.
OK, we fixed our bug on width issue, but it's cargo-cultish fix.
We fetch our payload using AJAX, so we figured we may have timing issue and that turns out to be correct.
If we instantiate Packery too soon, we get the width bug that create the N-1 problem.
If we instantiate Packery too late, we see transparent white space on top.
Maybe it's because we didn't set this.options.isInitLayout = false
?
from packery.
Yes, so
- percentage height on items will not work, currently. If you had an option to disable Packery from setting height on a container, would this resolve your problem
- Container width is container width. The only problem I see is that Packery sets
position: relative
, which may affect the size of the container. You can changed this withcontainerStyle
option
from packery.
Related Issues (20)
- Some elements are not being placed in 2 columns everytime
- Bug while open packery galery on Ipad
- How do i sort by tabindex?
- Custom Drop Zone : How to define a different drop zone. HOT 1
- Saving the order in the database HOT 1
- How to prevent grid size from expanding when dragging an item outside of its current dimensions? HOT 3
- Packery results in significant cumulative shift score HOT 3
- access gaps array with jQuery init HOT 1
- Activation of the packery without changing the positions of the layouts HOT 2
- laravel mix/webpack ERROR Module not found: Error: Can't resolve 'jquery' HOT 2
- Let user leave gaps between tiles and disable stacking stamped items (packery 2 or 1)
- How can I fix the size of the canvas?
- Packery and Livewire with pagination
- rowHeight set to tallest item
- React with Packery some strange issues
- Appended and Prepended with ImagesLoaded
- packery draggabilly: prevent from dropping over a .stamp.non-drop item. HOT 2
- dragItemPositioned no longer triggering HOT 1
- Draggable with custom (user inputted) elements HOT 1
- Feature request: Rotate items
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packery.