There is some problem in the image_caption.js file. If the style and align properties of an image is not set (ImageCache files for example), then the this js makes something, like this:
<span class="image-caption-container image-caption-container-" style="display:block;undefined; float: ">
It is not too valid CSS code. I made a patch for:
- If the image's original style is undefined, then an empty string is better instead of undefined.
- If the image's original align property is not set, then get the image's css float property
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | image_caption_js.patch | 1.79 KB | zoltán balogh |
| image_caption.js_.patch | 1.65 KB | zoltán balogh |
Comments
Comment #1
zoltán balogh commentedI do not understand this:
Why set to equal the width of the span around the image with the image's width? If the parent span have a border, and a little padding, then this code is destroying the design. I attached a better patch.