I've got an image in a page that is hidden.
When someone clicks on a link somewhere else in the page, I swap in a new source for: attr("src") Then I show() the container surrounding the image so it displays. Then I set some other elements near it to the same width. It's a popup and I don't want the title and caption to be wider than the image. On the FIRST CLICK, the size is set incorrectly. On the 2nd and every future click, the size is set correctly. I've tried replacing the attr("src") value and also replacing the entire HTML block with new HTML, but the problem happens both times. This happens on all browers. Any ideas? Thanks, Andy