Skip to content
This repository has been archived by the owner on Jul 25, 2019. It is now read-only.

Commit

Permalink
Masonry chrome bug, fixes #9
Browse files Browse the repository at this point in the history
  • Loading branch information
janhenckens committed Nov 9, 2016
1 parent c3a6c84 commit 570a6ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 2 additions & 4 deletions admin/css/wp-splashing-admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
* All of the CSS for your admin-specific functionality should be
* included in this file.
*/

a.upload {
position: relative;
}
img.splashing-thumbnail {
padding: 10px;
width: 30%;
max-width: 300px;
position: relative;
margin-right: auto;
margin-left: auto;
}
#wp-splashing_images .media-toolbar-primary {
display: inline-block;
Expand Down
3 changes: 2 additions & 1 deletion admin/partials/wp-splashing-admin-display.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,11 @@
jQuery(document).ready(function() {
var $grid = jQuery('#splashing-images').masonry({
itemSelector: '.splashing-thumbnail'
}).masonry('reloadItems');
});

$grid.imagesLoaded().progress( function() {
$grid.masonry('layout');
});

});
</script>

0 comments on commit 570a6ce

Please sign in to comment.