Closed
Bug 147416
Opened 22 years ago
Closed 21 years ago
JavaScript pop up is wrong size
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
RESOLVED
DUPLICATE
of bug 130174
People
(Reporter: josecarloselias, Assigned: danm.moz)
References
()
Details
From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc2) Gecko/20020510 BuildID: 20020510006 If you go to http://www.gemstartvguide.com/footer/demos.asp and click on the "GUIDE Plus+" link which pops up a javascript window, the window appears with scrollbars since it seems either (1) its contents are rendered larger than it is suppoed to be, or (2) the javascript window size frame is smaller than specified. Reproducible: Always Steps to Reproduce: 1. Go to http://www.gemstartvguide.com/footer/demos.asp 2. Click on "GUIDE Plus+" demo link 3. Look at the scrollbars that now appear around the window Actual Results: Scrollbars appear on javascript pop up window because of wrong size interpretation or rendering. Expected Results: No scrollbars since javascript pop-up's contents were designed to fit the window exactly. Internet Explorer and Opera both show the pop-up window without scrollbars, so it must be a mozilla bug.
Comment 1•22 years ago
|
||
To danm, for starters. The window that pops up is the same width as in IE but is a bit shorter (by about the height of the titlebar, in fact).
Assignee: attinasi → danm
Status: UNCONFIRMED → NEW
Ever confirmed: true
I can confirm this bug for version 1.1a, in build-id 2002053012 (final version 1.0) it seams to work.
Comment 4•22 years ago
|
||
In version 1.1 final of Mozilla on WinNT, this bug still exists (at least the popup page is with different size in IE6 and Mozilla). (but the page is a little changed, so there are no scrollbars visible).
Comment 5•21 years ago
|
||
Is this bug still active? I went to the URL given, followed steps given to reproduce and the popup window had no scrollbars. I also precisely measured the popup window content area and they were/measured as requested in the open call. The call was: (Nota Bene: LF/CR inserted to prevent scrolling) <a href="javascript:demopopit2('http://www.rca.com/documents/ design3_final.htm')">GUIDE Plus+</a> The calling function was : (Nota Bene: LF/CR inserted to prevent scrolling) function demopopit2(url) { newWindow=window.open(url, "_popups", "toolbar=yes,status=no,location=no,menubar=yes,left=15,top=20, height=500,width=700,scrollbars=no,resizable=no"); newWindow.focus(); } and margins were neutralized: <body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" bgcolor="#ffffff"> <!-- Image with table --> <table border="0" cellpadding="0" cellspacing="0" width="700"> There are several strong reasons to believe this is a DUPLICATE of bug 130174: bug 143412 was filed on the same day of the buildID of the report. Re: comment #4: I also see a window inner size difference with IE 6; the popup page is with different size in IE6 and Mozilla. But I don't see a bug with Mozilla. XP Pro SP1, Mozilla 1.3final (build 20030312) here.
Updated•21 years ago
|
Component: Layout → DOM Level 0
Comment 6•21 years ago
|
||
The expected results can be explained by bug 130174. <body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" ...> will neutralize margins on the body element for Mozilla-based browsers only; Opera 7.x and MSIE 6 will still have their default margin or padding on the body element. In the case of MSIE 6, the scrollbars were not appearing (default 18px) thanks to the window.open() call while the default body {margin: 15px 10px} of the popup-ed document were rendered: so it looked like the width was perfectly calculated. The provided URL and the demopopit2 function still exist like 9 months ago. XP Pro SP1, Mozilla 1.6final (build 20040113). For all these reasons, I'm resolving this bug as DUPLICATE of bug 130174. *** This bug has been marked as a duplicate of 130174 ***
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•