[wp-trac] [WordPress Trac] #20641: DFW editor: horizontal scrollbar appears when content width is too small

WordPress Trac wp-trac at lists.automattic.com
Sat May 26 20:24:23 UTC 2012


#20641: DFW editor: horizontal scrollbar appears when content width is too small
--------------------------+------------------------------
 Reporter:  hd-J          |       Owner:  azaozz
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:  3.2
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------
Changes (by azaozz):

 * owner:   => azaozz
 * status:  new => reviewing


Comment:

 Nice catch. Not sure if we should add that to the DFW css though.

 For themes that don't have editor-style, if you insert a large image in
 the visual editor it would still make a horizontal scrollbar like in DFW.
 The unknown part is whether the theme actually scales larger images on the
 front-end.

 So we may end up showing scaled down images in the editor but they would
 be unscaled on the front-end breaking the theme, and the user would not be
 aware of that.

 Another option may be to pass `$content_width` along with the above css to
 the editor and assume that if a theme sets $content_width it would also
 limit the images to the same width. That would be less risky, but still
 best is to have editor-style in the theme.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20641#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list