JDK-6910419 : 5u18+ applet size may not be initialized correctly if % was used in width or height
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 5.0u18
  • Priority: P2
  • Status: Closed
  • Resolution: Won't Fix
  • OS: windows_vista
  • CPU: x86
  • Submitted: 2009-12-15
  • Updated: 2011-04-26
  • Resolved: 2010-03-02
Related Reports
Relates :  
Description
Intermittently, applet is not painted on IE.

Vista SP1/IE7

This became to happen frequently after upgrading from 1.5.0_17 to 1.5.0_18.
This seems to happen if applet tag has '%' in width or height attribute.

For example, if the applet tag has widht="100%" and height="70", the JApplet
subclass size is 1x70 when the applet is not painted properly.

If I maximize the browser window, applet size is updated and the applet becomes to 
be painted properly.

The problem does not seem to happen with object tag even if it has width="100%".

Comments
EVALUATION CAxControl::IOleInPlaceObject_SetObjectRects() calls IExplorerPluginObject::setFrameSize() twice - once with 0 value for the parameter specified in % and then with the actual value. So, IOleInPlaceObject_SetObjectRects() should not call IExplorerPluginObject::setFrameSize() if width or height are 0.
01-01-2010

WORK AROUND set a fixed pixel size for both width and height rather than a percentage value.
16-12-2009