views:

137

answers:

1

When using javascript to swap images the HTML is updated fine but what Opera actually displays is not unless you scroll or resize the window. A picture of what happens when you scroll explains it best.

alt text

Any ideas?

EDIT: The source of the problem seems to be that the image is inside a div that has float right.

EDIT2: This http://trac.dojotoolkit.org/ticket/3158 would suggest that it's a bug that was fixed and is back again.

+1  A: 

Odd, I've never experienced problems like that before. I think that is a combination between browser and the graphics card / GUI, I've had exactly this behaviour before but in all sorts of applications (OpenOffice), not only the browser.

Ideas on how to maybe trick it into updating:

  • Set opacity to .99 and then back to 1
  • Change position by 1px (jerky though)
  • Set display to none and to block again (flickers, not nice, but to see whether it works)
  • Move it off the screen for a (milli)second and back again (probably flickers)
Pekka
* Opacity only affects the image "underneath".* Hiding and displaying it does nothing.* Moving it works as long as you don't move it back. Which means that every time you switch the image it needs to be somewhere new on the screen.
Kyle MacFarlane