s-yadav / angulargrid

Pinterest like responsive masonry grid system for angular
MIT License
277 stars 105 forks source link

Add option to restrict images to be a maximum height #56

Open faceleg opened 8 years ago

faceleg commented 8 years ago

I have some customers who upload images of boards (surf boards, snowboards) standing on end. The images are very tall and thin. This makes grids look pretty hideous.

A way to remedy the situation is to allow a max-height property for ag-grid, with modifications to the size detection algorithm to take this into account and limit height (and thus width) and centre the image within the grid element accordingly.