Media modal/grid: get the proper .attachment width in arrow navigation. Props avryl, see #27423.

git-svn-id: https://develop.svn.wordpress.org/trunk@29379 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2014-08-05 19:36:41 +00:00
parent 5894507b95
commit 281bf20383
2 changed files with 1 additions and 6 deletions

View File

@ -1431,7 +1431,6 @@
/**
* Spinner
*/
.media-frame .spinner {
background: url(../images/spinner.gif) no-repeat;
-webkit-background-size: 20px 20px;
@ -1653,7 +1652,6 @@
/**
* Image Editor
*/
.media-modal .imgedit-wrap {
position: static;
}
@ -2138,9 +2136,6 @@
font-family: Arial, sans-serif;
}
@media only screen and (max-width: 960px) {
.media-frame-content .media-toolbar-primary .search,
.media-frame-content .media-toolbar-secondary .attachment-filters {

View File

@ -4798,7 +4798,7 @@
arrowEvent: function( event ) {
var attachment = $('.attachments-browser .attachment'),
attachmentsWidth = $('.attachments-browser .attachments').width(),
thumbnailWidth = attachment.first().width(),
thumbnailWidth = attachment.first().outerWidth(),
thumbnailsPerRow = Math.round( attachmentsWidth / thumbnailWidth ),
totalThumnails = attachment.length,
totalRows = Math.ceil(totalThumnails/thumbnailsPerRow),