I installed
Masonry API
7.x-2.0
Masonry Views
7.x-1.0
I tried with
7.x-1.1 version of Masonry API but it did not help
I tried all versions of juery 1.7 - 1.10 in Jquery Update
I've got a code
.masonry-item {
float: left;
width: 30%;
border: 1px solid #666;
background-color: #666;
margin: 10px;
padding: 5px;
}
in my css
I have
jquery.masonry.min.js in sites/all/libraries/masonry
from http://desandro.github.io/masonry/jquery.masonry.min.js
but still
There is no masonry effect.
How to make it work?
P.S.
Finally fixed with combination of:
jQuery Masonry v2.1.06 https://github.com/desandro/masonry/releases/tag/v2.1.06
Masonry API 7.x-2.0
Masonry Views 7.x-1.0
jQuery Update 7.x-2.4 1.8 version
Comment | File | Size | Author |
---|---|---|---|
#10 | default_css--2278909-10.patch | 526 bytes | Dom. |
#9 | masonry_views-cannot_make-masonry_effect_work-2278909-9.patch | 633 bytes | sher1 |
#8 | masonry_views.info | 277 bytes | sher1 |
#8 | masonry_views.txt | 118 bytes | sher1 |
layout.jpg | 80.75 KB | leramulina |
Comments
Comment #1
leramulina CreditAttribution: leramulina commentedComment #2
leramulina CreditAttribution: leramulina commentedComment #4
kyleheney CreditAttribution: kyleheney commentedNo matter what I do, I cannot make the effect work. I have tried the configuration given above and it still doesn't give any effect.
jQuery Masonry v2.1.06
Masonry API 7.x-2.0
Masonry Views 7.x-1.0
jQuery Update 7.x-2.5 1.8 version (jQuery and jQuery UI CDN: None)
Status report looks good. Bricks do not rearrange when the window is resized.
Comment #5
marty.true CreditAttribution: marty.true commented@leramulina, can you please share your "fix" in this issue? It is always best practice to post your resolutions when you figure things out on your own, so that others having the same problem can benefit from your new found knowledge.
Comment #6
Dom. CreditAttribution: Dom. commentedCleaning up the issue list as part of new maintainer ramp-up on that module.
I will only support 3.x version. Thanks for your comprehension.
Dom.
Comment #8
sher1 CreditAttribution: sher1 as a volunteer commentedI have uploaded a css file (with ending of text because I can't attach css files) and a new info file to include the css. This will allow people to just turn on the module and have things work. This will work for any of the versions. The version I use is the 7.x-3.0-beta1 but the change is simple enough that it will work for any version. The other option would be to add this as a readme
Comment #9
sher1 CreditAttribution: sher1 as a volunteer commentedHere is a patch file
Comment #10
Dom. CreditAttribution: Dom. commentedHere is a patch attached with some corrections regarding the following:
Not needed: this is Masonry Layout magic !
Too dark for Drupal default theme
Let's make this percent thus more flexible.
Wrong way to include. This way, the CSS will be included on everypages. It takes to be included for the view display only via drupal_add_css on preprocess_view method.
Comment #12
Dom. CreditAttribution: Dom. commentedCommited on dev branch. Will be included in next release.
Comment #13
Dom. CreditAttribution: Dom. commentedComment #14
grinxols CreditAttribution: grinxols commentedHi,
This CSS file breaks my Masonry grid :(
I use a 12 column Bootstrap based theme, and my masonry-item elements have also specific classes that indicate the percent width of the columns (for example, col-sm-4 indicates that masonry-item occupies 4 columns (33% of the total width)). More info at http://getbootstrap.com/css/#grid.
This CSS file adds border, padding and margin to masonry-item, making it wider and therefore breaking my grid.
Renaming or deleting this file solves my problem, but... Is there another option to solve this issue?
Thanks!
Comment #15
NIKS_Artreaktor CreditAttribution: NIKS_Artreaktor commentedgrinxols
If you simply delete thous files - Drupal will get error to when trying to find them.
It is another way to hack this
Comment #16
Dom. CreditAttribution: Dom. commentedMy goal is to give minimum CSS for site builders that use the module with no dev. For other, it implies to add some css to there theme as per @NIKS_Artreaktor suggestion.