Opened 2 years ago
Closed 7 months ago
#17870 closed defect (bug) (fixed)
Featured image on post types
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | Administration | Version: | 3.2 |
| Severity: | normal | Keywords: | has-patch reporter-feedback |
| Cc: | mdhansen@… |
Description
I have found that the admin area has a bug were if the featured image is larger than the meta box it overlaps the box.
http://screensnapr.com/v/Do2DrO.png
attached a fix. see below css.
#postimagediv img { max-width: 100%; }
Attachments (1)
Change History (5)
comment:1
follow-up:
↓ 2
SergeyBiryukov — 21 months ago
- Keywords reporter-feedback added
Steps to reproduce? The image should be resized on-the-fly to 266px:
<img class="attachment-post-thumbnail" width="266" ... />
Code reference:
http://core.trac.wordpress.org/browser/tags/3.2.1/wp-admin/includes/post.php#L1230
Replying to SergeyBiryukov:
Steps to reproduce? The image should be resized on-the-fly to 266px:
<img class="attachment-post-thumbnail" width="266" ... />Code reference:
http://core.trac.wordpress.org/browser/tags/3.2.1/wp-admin/includes/post.php#L1230
Would it not be better to do this with css as well in general? I do not know why this happens but it has not be isolated to one installation.
As far as the php function goes I couldn't say what is going on. Could be the dimensions of the images throwing the calc off.
comment:3
MikeHansenMe — 7 months ago
- Cc mdhansen@… added
- Keywords close added
This appears to be resolved in the current version of trunk (3.5-beta1-22204) in the admin css file on line 3333-3334
#select-featured-image img {
max-width: 100%;
Proposing close as fixed.
comment:4
SergeyBiryukov — 7 months ago
- Keywords close removed
- Milestone changed from Awaiting Review to 3.5
- Resolution set to fixed
- Status changed from new to closed

css fix