Resizing a window causes an applet to be drawn incorrectly in IE7