Ticket #22649: 22649-media-views.js.patch
File 22649-media-views.js.patch, 712 bytes (added by , 12 years ago) |
---|
-
wp-includes/js/media-views.js
1776 1776 if ( ! this.views.attached ) 1777 1777 this.attach(); 1778 1778 1779 // Attempt to work around a nasty long-standing bug with position: fixed in iOS Safari 1780 if ( /Mobile\/.+Safari/.test(window.navigator.userAgent) ) { 1781 $('div.media-modal, div.media-modal-backdrop').css('position', 'absolute'); 1782 // making the modal position: absolute pins it at the top of the window :( 1783 $(window).scrollTop(0); 1784 } 1785 1779 1786 this.$el.show().focus(); 1780 1787 return this.propagate('open'); 1781 1788 },