mirror of
https://github.com/Aroy-Art/Rinkusu.git
synced 2024-12-27 08:24:24 +01:00
Fix: relayout masonry after page load
This commit is contained in:
parent
6de81928c4
commit
cc09656497
1 changed files with 5 additions and 0 deletions
|
@ -27,6 +27,11 @@ grids.forEach(function(grid) {
|
||||||
// layout Masonry after each image loads
|
// layout Masonry after each image loads
|
||||||
msnry.layout();
|
msnry.layout();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// layout Masonry after page load
|
||||||
|
$(window).on('load', function() {
|
||||||
|
msnry.layout();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue