Ticket #29275: 29275.patch
File 29275.patch, 564 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/js/media-views.js
5344 5344 width = this.$el.width(); 5345 5345 5346 5346 if ( width ) { 5347 this.columns = Math. round( width / this.options.idealColumnWidth) || 1;5347 this.columns = Math.min( Math.round( width / this.options.idealColumnWidth ), 12 ) || 1; 5348 5348 5349 5349 if ( ! prev || prev !== this.columns ) { 5350 5350 this.$el.attr( 'data-columns', this.columns );