JDK-6670162 : Initially-hidden applets receive (0, 0) for initial width and height
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6u10
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: windows
  • CPU: generic
  • Submitted: 2008-03-02
  • Updated: 2010-09-08
  • Resolved: 2008-06-24
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6u10 b21Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
User nhurst on the java.net 6uN EA forum has indicated that an initially hidden applet will receive (0, 0) as its width and height when init and start are called. The old Java Plug-In set the size of such applets to the width and height originally requested in the applet tag on the page.

The forum thread describing the problem is here:
http://forums.java.net/jive/thread.jspa?threadID=37457&tstart=0

The test case has been attached. Run with the old and the new plug-ins to see the difference in behavior.

The fact that IE hands us bogus rectangles during initialization is a general problem that has come up several times during the development of the new plug-in. The "See Also" field should be updated to point at these other bugs.

Comments
EVALUATION The old Java Plug-In, when encountering an initially invisible applet, would initialize the applet with the width and height from the applet tag. Adjusted the heuristics of the new Java Plug-In for IE to have the same behavior. Tested with the speed-trap.com dashboard, the AcuteScroller applet from http://javaboutique.internet.com/AcuteScroller, the VRX studios hotel applets (http://vrxstudios.com/hotel_program), the games at iWon.com (http://games.iwon.com/), the Pogo games, and the regression test for 6627606.
10-03-2008

SUGGESTED FIX http://sa.sfbay.sun.com/projects/deployment_data/6u10/6670162.0 testcase: http://j2se.east.sun.com/deployment/www/tests/1.6.0_10/6670162
10-03-2008