Closed Bug 132564 Opened 22 years ago Closed 22 years ago

Applets sized using % do not resize with browser window

Categories

(Core Graveyard :: Java: OJI, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: ebuck, Assigned: beard)

References

Details

Attachments

(4 files, 2 obsolete files)

As of MRJPlugin version 1.0d7, it was possible to specify applet size using 
percentages (i.e height=100% width=100%).  However, when percentages are used, 
the expected behavior is for the applet to automatically resize/repaint when 
the browser window is resize.  With the latest version of the MRJPlugin 
(1.0b2), applets do not resize with the window.  The user must refresh the 
browser window to get the applet to resize.
Brian, looks like we need to add code to call SizeJavaControl whenever the
width/height of the plugin window changes.
Assignee: beard → bnesse
Ed, do you have a test case for this?
Blocks: 88870
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attached patch Proposed patch (obsolete) — Splinter Review
Patch to call SizeJavaControl() before calling MoveAndClipJavaControl() (which
seems a bit silly IMO... but it does work.
Comment on attachment 76064 [details] [diff] [review]
Proposed patch

if (silly && works)
  r=sdagley
Attachment #76064 - Flags: review+
Comment on attachment 76064 [details] [diff] [review]
Proposed patch

you should use the width & height fields from the nsPluginWindow struct.
Attachment #76064 - Flags: needs-work+
Attached patch Revised patch (obsolete) — Splinter Review
Patch addressing beards comments. Patch also removes surrounding ifdefs and
dead code.
Attachment #76064 - Attachment is obsolete: true
Attachment #76121 - Attachment is obsolete: true
Comment on attachment 76131 [details] [diff] [review]
Patch without extra crap from other patches.

r=sdagley
Attachment #76131 - Flags: review+
Comment on attachment 76131 [details] [diff] [review]
Patch without extra crap from other patches.

sr=beard
Attachment #76131 - Flags: superreview+
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Chris Petersen is a new QA contact for oji component. His email is:
petersen@netscape.com
Assignee: bnesse → petersen
fixing small error for pmac@netscape.com (filter with : SPAMMAILSUCKS)
Assignee: petersen → beard
QA Contact: pmac → petersen
Verified in the 2002-12-17-08 cfm trunk under OS X 10.2.3.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: