Closed
Bug 213209
Opened 22 years ago
Closed 22 years ago
Popup window size as screen resolution percentage.
Categories
(Core :: Layout, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: beta, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624
going to http://www.yellowjug.com/menu.htm and clicking on the button "chat
room" a popup with the chat appears. Its size should respect determined
proportions (width 80% and height 65% of the screen resolution), but the window
opens full screen and the chat display the private section not joined to the
main anim.
Reproducible: Always
Steps to Reproduce:
1.go to the URL, click on "chat room"
2.enter in the chat room and click on a user (e.g. yourself) a private message
section appears
Actual Results:
You see a blank space between the main chat section and the private message
section.
Expected Results:
it should have respected the proportion I assigned (see the code in the
additional information) to the popup window; in this way the main chat section
and the private message section would be perfectly linked (without a blank space
between them).
-------------THIS IS THE CODE WHICH ASSIGNS VARIABLES
<SCRIPT LANGUAGE="JAVASCRIPT">
<!--
function dim()
{
var bb,aa;
if(document.layers)
{
bb=screen.Width/100*80;
aa=screen.Height/100*65;
}
else
if(document.all)
{
bb=screen.Width/100*80;
aa=screen.Height/100*65;
}
MiaFin =
window.open('cgi-bin/click.php?what=../chat/index.php','Chat','toolbar=no,
location=no, status=no, menubar=no, directories=no,
Width='+(bb)+',Height='+(aa)+',scrollbars=no, resizable=no');
}
----------THIS IS THE CODE THAT RECALLS THE POPUP (this code is inserted in a
flash animation button)
getURL("javascript:dim();");
Comment 1•22 years ago
|
||
document.layers is for Netscape 4
document.all is for Internet Explorer
Thus, you are offering no result to Mozilla.
I would suggest reading
http://devedge.netscape.com/viewsource/2001/updating-dhtml-web-pages/ as a
starting point on how to update your script.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•