[wp-trac] [WordPress Trac] #40788: Media elements video container is 1 px to wide

WordPress Trac noreply at wordpress.org
Thu May 18 08:17:34 UTC 2017


#40788: Media elements video container is 1 px to wide
--------------------------+------------------------------
 Reporter:  BackuPs       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by BackuPs):

 I think it is also possible to fix the MEJS v222 file WP is using so the
 layout of the players in the front does not change by adding a line of
 code at line 3038 in the original v222  mediaelement-and-player.js

 {{{
 if (t.isVideo) {parentWidth=parentWidth-1;}
 }}}


 So you get this.

 [[Image(https://cloud.githubusercontent.com/assets/6078370/26192590/ae9b06e2-3bb2-11e7-9324-67efa3486d64.png)]]

 Then just minify the js file to  mediaelement-and-player.min.js

 works for me ! :-)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40788#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list