Closed (fixed)
Project:
Masonry API
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Apr 2013 at 22:36 UTC
Updated:
13 Jun 2013 at 23:30 UTC
Jump to comment: Most recent
Comments
Comment #1
waltf commentedHi, i have the same issue, and changed the masonry_views.module file to :
// Initialize Masonry
$script = '(function ($) {
var $container = $(".' . $view_class . ' .view-content");
$(window).load(function(){
$container.masonry({
itemSelector: ".masonry-item",
but masonry is still active before the font loads.
Could you tell me what you changed?
Comment #2
Anonymous (not verified) commentedThis may help: http://masonry.desandro.com/docs/help.html#fontface_fonts
The upcoming Masonry v2.x will allow you to choose whether or not to use the imagesLoaded feature, and will also allow you to override the Masonry javascript file to use your own custom configuration.
Comment #3
waltf commentedThanks for all the hard work BWPanda, really appreciated.
I still couldn't get it working. Should i be changing modules/masonry/masonry_views/masonry_views.module file or another one?
I tried v2 but it didnt seem to work in views, so i reverted back to v1.
Thanks.
Comment #4
Anonymous (not verified) commentedViews integration for Masonry v2 is still in progress, keep an eye on https://drupal.org/project/masonry_views
Comment #5
waltf commentedThx, I will, already bookmarked. If someone found a solution for getting google fonts to load before applying masonry in v1, I would be very greatful, the $(window).load(function(){ solution in views isnt working for me.