Make WordPress Core

Ticket #24716: 24716.32.diff

File 24716.32.diff, 513 bytes (added by ericlewis, 11 years ago)
  • src/wp-includes/js/media-views.js

    diff --git a/src/wp-includes/js/media-views.js b/src/wp-includes/js/media-views.js
    index 6bf147c..a791659 100644
    a b  
    50815081                        if ( this.options.resize ) {
    50825082                                $(window).on( 'resize.attachments', this._resizeCss );
    50835083                        }
    5084                         this.css();
     5084
     5085                        // Call this.css() after this view has been rendered in the DOM so
     5086                        // attachments get proper width applied.
     5087                        _.defer( this.css, this );
    50855088                },
    50865089
    50875090                dispose: function() {