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

Comments

zoltán balogh’s picture

StatusFileSize
new1.79 KB

I do not understand this:

    if(imgwidth != 'undefined' && imgwidth != 0){
      $(this).parent().width(imgwidth);
    }

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.