Closed Bug 41602 Opened 25 years ago Closed 25 years ago

plugins don't size to expand the box

Categories

(Core Graveyard :: Plug-ins, defect, P3)

x86
Windows 2000
defect

Tracking

(Not tracked)

VERIFIED FIXED
Future

People

(Reporter: DavidA, Assigned: eric)

Details

From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0) BuildID: 2000042708 The following XUL demonstrates that the plugins don't size the way one would expect them to internally, even though they appear to claim the right amount of the parent box. They don't resize well either. Tested with the sample plugin and with our plugin. Reproducible: Always Steps to Reproduce: Load XUL file below. One would expect the plugin area to act much like the box on the left of the splitter. Actual Results: The splitter is at 50% of the width, as expected. The embed area is small, unlike what is expected (maybe 50px by 50px). When the splitter is moved by dragging the grippy, the sizing is wrong (the splitter does not follow the mouse) Expected Results: A really boring window with a grey box on the right which grew as the splitter is dragged. <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin" type="text/css"?> <window xmlns:html="http://www.w3.org/TR/REC-html40" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" > <box orient="horizontal" flex="1" width="100"/> <splitter state="open" collapse="before" resizebefore="closest" resizeafter="closest"/> <html:embed type="netscape-plugin" flex="1"/%
this might be related to bug 37137
Status: UNCONFIRMED → NEW
Ever confirmed: true
This test case is invalid. Splitters are placed between 2 elements you wish to size not one. If you just have one you will indeed get very strange behavior. Try placing a spring with flex 1 to the right of the splitter.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
I'm sorry, I don't understand. The intended element structure in my test case (which was apparently truncated in the submission process was: <box flex="1"/><splitter .../><html:embed ... flex="1"/> How is that not putting a splitter between two elements? In other words I want the embed to resize just like the box. --david ascher
This example seems to work: <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?> <!DOCTYPE window> <window xmlns:html="http://www.w3.org/TR/REC-html40" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <box orient="horizontal" flex="1" width="100"/> <splitter/> <html:embed type="netscape-plugin" flex="1"/> </window> For me the plugin comes up and fills the right area. It places an icon in the upper left corner because this example does not specify it. Is there a live working plug in I can try?
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
targeting
Target Milestone: --- → M19
moving evaughan non-nsbeta3 bugs to Future milestone, per xptoolkit triage. Is this still a problem, or a misunderstanding? Is there a fuller testcase?
Target Milestone: M19 → Future
This problem doesn't occur with recent bugs. Sorry for not updating this bug report earlier. Should I close it, being the reporter?
David: Yup. If it's nolonger occurring, please mark it FIXED.
Problem no longer occurs.
Status: REOPENED → RESOLVED
Closed: 25 years ago25 years ago
Resolution: --- → FIXED
marking verified based on reporters' comment.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.