mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-09-19 18:19:19 +08:00
masonry fix
This commit is contained in:
@@ -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',
|
||||||
|
Reference in New Issue
Block a user