WordPress.org

Make WordPress Core

Changeset 29379


Ignore:
Timestamp:
08/05/2014 07:36:41 PM (5 years ago)
Author:
azaozz
Message:

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

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/css/media-views.css

    r29376 r29379  
    14321432 * Spinner
    14331433 */
    1434 
    14351434.media-frame .spinner {
    14361435    background: url(../images/spinner.gif) no-repeat;
     
    16541653 * Image Editor
    16551654 */
    1656 
    16571655.media-modal .imgedit-wrap {
    16581656    position: static;
     
    21382136    font-family: Arial, sans-serif;
    21392137}
    2140 
    2141 
    2142 
    21432138
    21442139@media only screen and (max-width: 960px) {
  • trunk/src/wp-includes/js/media-views.js

    r29376 r29379  
    47994799            var attachment = $('.attachments-browser .attachment'),
    48004800                attachmentsWidth = $('.attachments-browser .attachments').width(),
    4801                 thumbnailWidth = attachment.first().width(),
     4801                thumbnailWidth = attachment.first().outerWidth(),
    48024802                thumbnailsPerRow = Math.round( attachmentsWidth / thumbnailWidth ),
    48034803                totalThumnails = attachment.length,
Note: See TracChangeset for help on using the changeset viewer.