[wp-trac] [WordPress Trac] #22906: Does not resize image with caption for a responsive design.
WordPress Trac
noreply at wordpress.org
Thu Dec 13 06:18:45 UTC 2012
#22906: Does not resize image with caption for a responsive design.
--------------------------+------------------------------
Reporter: maxwell.shim | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 3.5
Severity: trivial | Resolution:
Keywords: |
--------------------------+------------------------------
Changes (by SergeyBiryukov):
* keywords: has-patch =>
* component: Graphic Design => Media
Old description:
> Problem 1 : Does not resize image with caption for a responsive design.
>
> Returns the fixed width of the image function img_caption_shortcode()
> So does not change the image width.
>
> I think change style max-width.
>
> return '<div ' . $id . 'class="wp-caption ' . esc_attr($align) . '" style
> ="max-width: ' . (10 + (int) $width) . 'px">'
New description:
Problem 1 : Does not resize image with caption for a responsive design.
Returns the fixed width of the image function img_caption_shortcode()
So does not change the image width.
I think change style max-width.
{{{
return '<div ' . $id . 'class="wp-caption ' . esc_attr($align) . '" style
="max-width: ' . (10 + (int) $width) . 'px">'
}}}
--
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22906#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list