[wp-trac] [WordPress Trac] #42646: Customizer cropped images issue with flex-width=false and flex-height=false

WordPress Trac noreply at wordpress.org
Mon Nov 20 23:19:56 UTC 2017


#42646: Customizer cropped images issue with flex-width=false and flex-height=false
--------------------------+-----------------------------
 Reporter:  WebTrooper    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Customize     |    Version:  4.9
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 The issue occurs in both, add_theme_support('custom-header') and
 WP_Customize_Cropped_Image_Control

 When flex-width and flex-height are both set to true, I am still able to
 drag the vertical and horizontal cropping handles independently, thus
 changing the proportion of the cropped area of the image. The resulting
 "cropped" image is then stretched or squished to the correct crop size.

 With flex-width and flex-height both set to false (or left to default),
 only the corners of the cropping area should be draggable, thus
 maintaining the aspect ratio. I believe it used to work that way, but now
 it doesn't.

 Tested on WordPress 4.9, PHP 7

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42646>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list