Automattic/jetpack — pull request #557 by rase- (2014-05-17 10:44:13+00:00)
Title: Added row and group containers to square and circle Tiled Galleries

This addition will make square and circle galleries deal more gracefully (like rectangular galleries do) in situations where there is an unexpected overflow of a pixel or two. Before images would sometimes overflow to next rows, and the layout would be totally murdered in some browser zoom levels while resizing. By adding row and group containers images don't overflow to next rows, removing a noticeable and irritating overflow effect.

Adding row and group containers to square and circle galleries too gives a new opportunity to share even more code between the rectangular and the other gallery layouts. I suggest that if this PR is merged, I would update https://github.com/Automattic/jetpack/pull/526 to accomplish this.

Addresses issues https://github.com/Automattic/jetpack/issues/556 and https://github.com/Automattic/jetpack/issues/551.