[wp-trac] [WordPress Trac] #42554: CodeMirror extends content width when initialized in IE11

WordPress Trac noreply at wordpress.org
Wed Nov 15 14:05:51 UTC 2017


#42554: CodeMirror extends content width when initialized in IE11
--------------------------+------------------
 Reporter:  Clorith       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.9
Component:  General       |     Version:  4.9
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  ui
--------------------------+------------------

Comment (by afercia):

 Seems to me the reason why the CodeMirror wrap gets a bit bigger in Chrome
 and breaks the layout in IE is normal textarea element in WordPress use
 `box-sizing: border-box;` while the CodeMirror wrapper doesn't.

 Adding `box-sizing: border-box;` to `#template .CodeMirror` fixes it for
 me.

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


More information about the wp-trac mailing list