hongkhanh / gridify

A lightweight script for creating a Pinterest-like grid using JQuery, pure javascript or YUI with image loaded
http://hongkhanh.github.io/gridify
MIT License
124 stars 33 forks source link

Size container after adding grid items #2

Closed jbeyers closed 9 years ago

jbeyers commented 9 years ago

I've added a function to resize the container to the height of the tallest column. Without this, the container has no height, so any footer divs get bunched up below the grid.

I only did this for the basic javascript code, not jquery or yui. Sorry about that. I don't have the time right now for a fully, tested fix.

It probably needs to be optional.

frg commented 9 years ago

The feature is heavily used in my code. Very useful. Thanks!