[wp-trac] [WordPress Trac] #18827: Fullscreen editor witdh is 10px too narrow

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 30 19:02:26 UTC 2011


#18827: Fullscreen editor witdh is 10px too narrow
----------------------------+-----------------------------
 Reporter:  mikkelbreum     |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  3.2.1
 Severity:  trivial         |   Keywords:
----------------------------+-----------------------------
 wp-admin/includes/post.php on line 1777 (WP 3.2.1)  it says:

 $width = $width + 10; // compensate for the padding

 But since the padding it's compensating for is 10px for both sides, it
 should to be changed to:

 $width = $width + 20; // compensate for the 10px left and right padding

 I've tested changing the code as suggested here, and it fixes the problem.

 Thats it. The container is simply always 10px less wide than the
 $content_width which makes it difficult to use with a carefully designed
 editor stylesheet as it will break floating elements to new lines etc.

 This problem only occurs when the editor is in the full width (distraction
 free) mode.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18827>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list