Closed
Bug 148958
Opened 23 years ago
Closed 8 years ago
applet won't resize
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: leonchiver, Unassigned)
References
Details
Attachments
(1 file)
1.81 KB,
application/zip
|
Details |
i'm using a page which contains an applet. if some button is clicked i would
like to resize that applet.
that for i wrote a javascript method which gets the applet object, and sets the
width and the height. but it does work only in ie. am i doing something wrong or
doesn't mozilla handle this?
here is a quick code snippet, i will attach an example later.
<applet class=..... id='applet'>
</applet>
<button onClick='javascript:resizeApplet();'>Resize</button>
<script type='text/javascript'>
function resizeApplet() {
var applet = document.getElementById('applet');
applet.width=100;
applet.height=100;
</script>
Reporter | ||
Comment 1•23 years ago
|
||
Reporter | ||
Comment 3•23 years ago
|
||
Huh, forgot to specify mozilla + java version details:
-mozilla 1.0rc3
-jdk1.4.0
-redhat linux 7.3, windows2000
Comment 4•23 years ago
|
||
I've tried to change the resizing to use CSS, and discovered another bug.
There's no style member in applet objects!
It's bug 148958.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•23 years ago
|
QA Contact: desale → stummala
Depends on: 59686
Comment 5•23 years ago
|
||
I can verify.
Mozilla 1.2b (Build ID 2002101612), Sun Java 1.4.0, Windows 2000 with SP2.
Applet calls resize(), but Mozilla doesn't seem to care about it.
I used OBJECT-element.
Comment 6•22 years ago
|
||
Possibly related: I've been trying to use percetages to make an applet fill the
entire frame as in
<applet codebase="/classes" width="100%" height="100%" hspace="0" vspace="0"
align="middle" code="XDJTableApplet.class" name="ResultsApplet">
When this didn't work I resorted to javascript to try and manually set the size
of the applet. After adding debugging, it appears that the browser always calls
the applets resize method with the width and height values as set in the applet
tag. Therfore, if you manually try to resize an applet with width=500 and
height=500 set in the applet tag to 100,100 using setSize then as soon as your
call to setSize complete the browser will call resize 500,500,giving the
impression that no resize is taking place.
There seems to be a related issue that percentage size values always get passed
to the applet as zero, so no applet appears on the page when you use percentage
widths.
My tests on Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003
Hope this helps.
Comment 8•20 years ago
|
||
Probable dupes:
Bug 112428 java applet view does not get redrawn correctly
Bug 132978 Mozilla window shows trash when rescaling fullsize applet
Bug 148958 applet won't resize
Bug 190759 applet is not resizing after a window resize operation
Bug 266596 Java Applet resize: cannot enlarge (or shrink sometimes); ("native"
panel is fixed size).
Bug 300346 Redraw errors after resizing a window containing an applet with 100%
width and height
Comment 9•18 years ago
|
||
Are there any plans to address this? I'd like not to have to use Silverlight instead. I know, I should get my hands dirty!
Component: DOM: HTML → DOM: Core & HTML
QA Contact: stummala → general
Comment 10•16 years ago
|
||
Just confirming this is still a bug with Firefox 3.5.2 on Windows, with Sun's latest JRE (1.6).
Updated•14 years ago
|
Assignee: general → nobody
Comment 11•8 years ago
|
||
The HTML <applet> element and related java functionality was removed from Gecko in Bug 1279218. Marking related bugs as invalid.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•