I made a view with:

- a page display, which is using the masonry style
- an attachment display, which is attached to the page, and which just shows a plain HTML list

The output looks totally broken, because the masonry JS is trying to affect the items in the attachment display too.

This is because the container selector that is passed to masonry is too general: we an HTML structure of DIVs with these classes :

- viewclass display class
-- attachment
--- viewclass display class
---- view_content
-- view_content

So the selector ".VIEWCLASS.DISPLAYCLASS .view_content" will hit both DIVs with the view_content class.

Patch coming.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joachim’s picture

Status: Active » Needs review
FileSize
951 bytes

Here's a patch.
I've split up the creation of the selector across several lines to make it clearer to follow.

Dom.’s picture

Issue summary: View changes
Status: Needs review » Closed (fixed)

This was fixed meanwhile on the way to v3.