Closed (fixed)
Project:
Masonry API
Version:
7.x-1.0
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Jan 2013 at 19:47 UTC
Updated:
22 Jan 2013 at 01:10 UTC
Jump to comment: Most recent
Comments
Comment #1
mssoftware commentedThere seem to be a issue with multi-columns, which has been mentioned here http://drupal.org/node/1825150 too. If you have a 300px width of the Grid and you use images or nodes, which have 600px width (two- or multi-columns), you get overlapping nodes in a 300px masonry grid.
The "masonry view" module inserts the following inline CSS-Code, in the head of the resulting page, when you specify a 300px wide grid in an embedded view:
Notice, that even if you don`t set the gutter width, a margin is set, which may be another issue.
I think, the masonry javascript can`t determinate the real width of your multi-column, because it got overwritten by those inline CSS.
To solve this issue, you can either patch the "masonry view" module code, or overwrite the width in a theme CSS, which is loaded after the inline code using this:
You have to use !important because the inline-CSS would otherwise take precendence over your external theme CSS.
In my mind, #1825150 is a bug. Layouts with multi-column width with "masonry view" module generally do not work, because of this inline-CSS. Only the "float: left" in those inline-css is really needed. Specifying the width explicitly in those CSS will also break fluid/responsive layouts.
Comment #2
Anonymous (not verified) commentedAs per the project page: