masonry fix
parent
72740475a7
commit
51f89127e9
|
@ -148,8 +148,7 @@
|
||||||
}
|
}
|
||||||
_sourceCode.classList.add('hidden');
|
_sourceCode.classList.add('hidden');
|
||||||
|
|
||||||
masonry.reloadItems();
|
$scope.doMasonry();
|
||||||
masonry.layout();
|
|
||||||
}, 0, true, sourceCode);
|
}, 0, true, sourceCode);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -237,6 +236,15 @@
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.doMasonry = function() {
|
||||||
|
masonry.reloadItems();
|
||||||
|
masonry.layout();
|
||||||
|
|
||||||
|
$timeout(function() {
|
||||||
|
masonry.layout();
|
||||||
|
}, 600);
|
||||||
|
};
|
||||||
|
|
||||||
$scope.initMasonry = function() {
|
$scope.initMasonry = function() {
|
||||||
masonry = new Masonry('main .files .grid', {
|
masonry = new Masonry('main .files .grid', {
|
||||||
itemSelector: '.grid-item',
|
itemSelector: '.grid-item',
|
||||||
|
|
Loading…
Reference in New Issue