Issue with Masonry gallery and Center Alighment
-
I have a site in production and just noticed that the Center Alignment setting for the Masonry gallery is breaking the gallery display. I assume this is occurring after the last update (I haven’t looked at the site in a while) since it used to work fine.
My settings are Thumbnail Width: 150; Layout: Fixed Width; Gutter: 4, Image Alignment: Center.
The images are displaying in 5 columns and overlapping each other horizontally, only adding the gutter vertically. I’ve tried changing the gutter and the image size, but the issue persists.
As far as I can tell, the only code difference between the Center and Left Alignment options is in the foogallery-container div (the width is specified):
"isFitWidth" : true }" style="position: relative; width: 766px; height: 603px;">
but for each item, the positioning CSS is exactly the same (0, 17.5, 35, 52.5, 70%). I can’t find any other CSS that could be accounting for image overlap.
Additionally (may or may not be related), when I minimize the screen to check for responsiveness (images overlapped on smaller screen too) then re-maximize the screen, the columns then take up the full width of the screen (0, 33.6245, 67.2489, 100.873, 134.498, 168.122%) with huge vertical gutters but none horizontally. Doing the same thing with the Left Aligned gallery works flawlessly, maintaining the correct gutters upon screen resizing.
I’ve switched it back to Left Alignment for now, but it would be nice if the Center Alignment worked again. ??
- The topic ‘Issue with Masonry gallery and Center Alighment’ is closed to new replies.