Closed Bug 138017 Opened 22 years ago Closed 22 years ago

Applets not loading for 'height=10%, applet height=5%, applet height=3%"

Categories

(Core Graveyard :: Java: OJI, defect)

x86
Windows 98
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 131065

People

(Reporter: pmac, Assigned: joe.chou)

References

()

Details

Seen on windows 98 and linux redhat 7.1 (2002-04-15-10-TRUNK)
using JRE 1.3.1_02

Steps to reproduce:

1. Launch netscape.
2. Click on this url:
http://www.mozilla.org/quality/browser/front-end/testcases/oji/test7.html

Notice the applets height=10%, applet height=5%, applet height=3% are not
loading...
However, they used to load fine on windows 98 and linux with JRE 1.3.1.
IE doesn't render these either. However, 4.x doesn't look quite right either.
Heh. If you don't have Java installed then you only see one plug-in thingy :-)
applet height=100% doesn't work on Mozilla 1.0rc1 in Linux either.
Absolute values work fine. width=100% works fine, too.

Trying to use div height=100% or a table won't work.
The problem seems to be that the applet thinks it it getting passed a negative
height:

Joined applet thread...
Registered modality listener
Quiting applet...
Registered modality listener
Registered modality listener
Registered modality listener
Referencing classloader: sun.plugin.ClassLoaderInfo@9ac0f5, refcount=1
Referencing classloader: sun.plugin.ClassLoaderInfo@9ac0f5, refcount=2
Referencing classloader: sun.plugin.ClassLoaderInfo@9ac0f5, refcount=3
Referencing classloader: sun.plugin.ClassLoaderInfo@9ac0f5, refcount=4
Added trace listener:
sun.plugin.AppletViewer[JitterText,0,0,400x80,invalid,layout=java.awt.BorderLayout]
Added progress listener:
sun.plugin.AppletViewer[JitterText,0,0,400x80,invalid,layout=java.awt.BorderLayout]
Loading applet...
Initializing applet...
Starting applet...
Added trace listener:
sun.plugin.AppletViewer[JitterText,3,22,394x-25,invalid,layout=java.awt.BorderLayout]
Added trace listener:
sun.plugin.AppletViewer[JitterText,3,22,394x-25,invalid,layout=java.awt.BorderLayout]
Added trace listener:
sun.plugin.AppletViewer[JitterText,3,22,394x-25,invalid,layout=java.awt.BorderLayout]
Added progress listener:
sun.plugin.AppletViewer[JitterText,3,22,394x-25,invalid,layout=java.awt.BorderLayout]
Added progress listener:
sun.plugin.AppletViewer[JitterText,3,22,394x-25,invalid,layout=java.awt.BorderLayout]
Added progress listener:
sun.plugin.AppletViewer[JitterText,3,22,394x-25,invalid,layout=java.awt.BorderLayout]
Loading applet...
Loading applet...
Finding information...
Initializing applet...
Loading applet...
Initializing applet...
Starting applet...
Starting applet...
Releasing classloader: sun.plugin.ClassLoaderInfo@5f1f9c, refcount=0
Done...
Initializing applet...
Starting applet...
Connecting
htttp://www.mozilla.org/quality/browser/front-end/testcases/oji/JitterText.class
with no proxy
Loading
http://www.mozilla.org/quality/browser/front-end/testcases/oji/JitterText.class
from cache
java.lang.IllegalArgumentException: Width (394) and height (-25) cannot be <= 0
	at
java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:999)
	at sun.awt.windows.WComponentPeer.createImage(WComponentPeer.java:447)
	at java.awt.Component.createImage(Component.java:2587)
	at JitterText.init(JitterText.java:64)
	at sun.applet.AppletPanel.run(AppletPanel.java:341)
	at java.lang.Thread.run(Thread.java:536)
java.lang.IllegalArgumentException: Width (394) and height (-25) cannot be <= 0
	at
java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:999)
	at sun.awt.windows.WComponentPeer.createImage(WComponentPeer.java:447)
	at java.awt.Component.createImage(Component.java:2587)
	at JitterText.init(JitterText.java:64)
	at sun.applet.AppletPanel.run(AppletPanel.java:341)
	at java.lang.Thread.run(Thread.java:536)
java.lang.IllegalArgumentException: Width (394) and height (-25) cannot be <= 0
	at
java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:999)
	at sun.awt.windows.WComponentPeer.createImage(WComponentPeer.java:447)
	at java.awt.Component.createImage(Component.java:2587)
	at JitterText.init(JitterText.java:64)
	at sun.applet.AppletPanel.run(AppletPanel.java:341)
	at java.lang.Thread.run(Thread.java:536)
This is layout's bug, and duplicate with #131065

*** This bug has been marked as a duplicate of 131065 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
QA Contact: pmac → petersen
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.