United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6670162 Initially-hidden applets receive (0, 0) for initial width and height
JDK-6670162 : Initially-hidden applets receive (0, 0) for initial width and height

Details
Type:
Bug
Submit Date:
2008-03-02
Status:
Closed
Updated Date:
2010-09-08
Project Name:
JDK
Resolved Date:
2008-06-24
Component:
deploy
OS:
windows
Sub-Component:
plugin
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6u10
Fixed Versions:
6u10 (b21)

Related Reports
Duplicate:
Relates:
Relates:
Relates:
Relates:

Sub Tasks

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
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
                                     
2008-03-10
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.
                                     
2008-03-10



Hardware and Software, Engineered to Work Together