twitter/bootstrap — Issue #816: .media-grid doesn't take into account varying orientation across li elements
Author: davidthewatson
Created: 2011-12-16 16:28:29+00:00
State: open

I have the following:

").attr("src", item.media.m).appendTo("#images")
.wrap("
")
});
});
});

The problem is that images vary by orientation - some are landscape and some are portrait. media-grid should take this into account by defining it's outside bounding box to be large enough to accomodate both orientations with a little padding. The existing implementation is not usable since it produces jagged rows and columns. Is there a parameter I can pass somewhere to get the images to clip or something? I tried setting length and width on the bounding li but that didn't work.

Thanks.