Closed
Bug 5995
Opened 25 years ago
Closed 24 years ago
window.pageXOffset and window.pageYOffset return some big values.
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
VERIFIED
FIXED
M16
People
(Reporter: desale, Assigned: joki)
References
Details
(Keywords: testcase, Whiteboard: window.page[X|Y]Offset does not return 0)
Attachments
(1 file)
(deleted),
text/html
|
Details |
window.pageXOffset and window.pageYOffset return some very big integer values.
pageXOffset and pageYOffset provides the current x-position, and y-position in
pixels, of a windows viewed page. So for current situation [ For code I'm
providing, there is no chance of scrolling down and scrolling right since its
really small document.] it should return "0" but it returns some very big
integer values.
Product: Semonkey [Apprunner/Viewer].
Build: 05-04-08.
OS: Win95, WinNT, MacOS.
Steps to Reproduce:
1] Please copy code I'm providing.
2] Save as HTML file and open this HTML file in apprunner as well as viewer.
3] This HTML file will show you values of pageXOffset and pageYOffset. [code
uses window.pageXOffset, and window.pageYOffset ]
Expected Results: Each command should return "0" and it should get
printed on screen as follows.
window.pageXOffset = 0
window.pageYOffset = 0
Actual Results: Each command returns some big number and it gets printed on
screen as follows.
window.pageXOffset = 8319200
window.pageYOffset = 8319200
Code:
<html>
<head>
<title>Test Page</title>
</head>
<body >
<form name="workform">
<SCRIPT LANGUAGE="JavaScript1.1">
document.writeln("<h3>");
document.writeln("Window pageXOffset and pageYOffset");
document.writeln("</h3>");
document.writeln("window.pageXOffset = ");
document.writeln(window.pageXOffset);
document.writeln("<br>");
document.writeln("window.pageYOffset = ");
document.writeln(window.pageYOffset);
document.writeln("<br>");
</SCRIPT>
</form>
</body>
</html>
End of Code.
Updated•25 years ago
|
Assignee: vidur → joki
Comment 1•25 years ago
|
||
More window stuff for you, Tom.
Updated•25 years ago
|
Whiteboard: [MAKINGTEST] christian@wenz.org
Comment 2•25 years ago
|
||
Updated•25 years ago
|
Whiteboard: [MAKINGTEST] christian@wenz.org → [TESTCASE] window.page[X|Y]Offset does not return 0
Comment 3•25 years ago
|
||
Overview Description: window.page[X|Y]Offset returns weird values
Steps to Reproduct: 1) load the attachment; 2) view the text on the screen
Actual Results: window.pageXOffset = 151617216
window.pageYOffser = 151617216
Expected Results: window.pageXOffset = 0
window.pageYOffser = 0
Build Date & Platform: occurs on M7 and current daily build (Win32)
does not occur on NN4.x
Additional Information: did not touch desale@netscape.com's test case as it
could not be simplified much further
Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Target Milestone: M14
Updated•25 years ago
|
Target Milestone: M14 → M16
Comment 4•25 years ago
|
||
Moving M16.
Comment 5•25 years ago
|
||
Bulk moving [testcase] code to new testcase keyword. Sorry for the spam!
Keywords: testcase
desale, can you explain specifically WHY this is a beta blocker? Thanks!
Reporter | ||
Comment 8•25 years ago
|
||
Because I guess there might be lot of web-developers use these properties to
determinex-position, and y-position of a windows viewed page. Think about
web-developers who develop on-line Games or funny things for Kids. I mean if you
ask me to look for and site which uses it, then I'll need to look for it. Right
now I don't know any, but I'm looking at this bug as a missing feature.
Putting on on PDT- radar, would not hold beta for this bug.
Whiteboard: [TESTCASE] window.page[X|Y]Offset does not return 0 → [PDT-]window.page[X|Y]Offset does not return 0
Comment 10•25 years ago
|
||
Am also seeing this bug massively - if not a hold for beta, is there any other
way to gain this value in Mozilla alone (DOM1 equivalent)?
Comment 11•25 years ago
|
||
This bug is preventing me from completing my work on the imagemap editor!!! I
need it to determine if the page is scrolled before drawing a shape or it
appears in the wrong position on the page. I definatly think it should be
considered a beta blocker!!!
Assignee | ||
Comment 12•24 years ago
|
||
Okay, this should be fixed now.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 13•24 years ago
|
||
Adding nsbeta2 to keywords.
Keywords: nsbeta2
Whiteboard: [PDT-]window.page[X|Y]Offset does not return 0 → window.page[X|Y]Offset does not return 0
You need to log in
before you can comment on or make changes to this bug.
Description
•