WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 2 months ago

#33006 closed defect (bug) (worksforme)

Customizer: Image height set incorrectly under current header when a cropped header image is set

Reported by: CreativeInfusion Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.0
Component: Customize Keywords:
Focuses: Cc:

Description

Using the Customizer select add new image and choose a header image from the media library. When prompted choose to crop it.

The Customizer then sets the height of the new image under 'Current header' to be very tiny.

Selecting another image and reselecting the new one restores normality.

Note that it works normally if you choose not to crop.

Change History (4)

#1 @valendesigns
6 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

This is a duplicate of #31970

#2 @CreativeInfusion
6 years ago

  • Resolution duplicate deleted
  • Status changed from closed to reopened

I don't think it is talking about exactly the same problem.

31970 seems to be live previewing another theme and the cropped image is large and distorted.

This one is referring to the thumbnail of the cropped header image having a height set that is way too small - that's the thumbnail on the left hand side in the Customizer under the heading 'Current header'. The height is actually set on the container that the image is injected into using javascript.

Last edited 6 years ago by CreativeInfusion (previous) (diff)

#3 @SergeyBiryukov
6 years ago

  • Milestone set to Awaiting Review

#4 @celloexpressions
2 months ago

  • Resolution set to worksforme
  • Status changed from reopened to closed

I can't reproduce the issue with the height of the current header after cropping. It should be based on the image aspect ratio and taking the full width of the sidebar. If anyone else is seeing something different or broken, please feel free to reopen this ticket.

Note: See TracTickets for help on using tickets.