bigbite / macy.js

http://macyjs.com/
MIT License
1.28k stars 156 forks source link

Do nothing if there's only one column #62

Open therealsamsquanch opened 4 years ago

therealsamsquanch commented 4 years ago

I'm using breakAt and it works as intended. The only problem is that Macy still sets every item position even if there's only one column. It would be more efficient to do nothing and let the browser and the user's CSS rules do its work, specially on mobile devices.

1aurabrown commented 3 years ago

I second this - inline styles also remain on masonry elements after destroying the Macy instance, breaking the page layout.