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)

x86
Windows 95
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: desale, Assigned: joki)

References

Details

(Keywords: testcase, Whiteboard: window.page[X|Y]Offset does not return 0)

Attachments

(1 file)

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.
Assignee: vidur → joki
More window stuff for you, Tom.
Whiteboard: [MAKINGTEST] christian@wenz.org
Whiteboard: [MAKINGTEST] christian@wenz.org → [TESTCASE] window.page[X|Y]Offset does not return 0
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
Status: NEW → ASSIGNED
Target Milestone: M14
Target Milestone: M14 → M16
Moving M16.
Bulk moving [testcase] code to new testcase keyword. Sorry for the spam!
Keywords: testcase
*** Bug 15015 has been marked as a duplicate of this bug. ***
Keywords: beta1
desale, can you explain specifically WHY this is a beta blocker? Thanks!
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
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)?
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!!!
Okay, this should be fixed now.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
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
Verified with 2000-04-26-11.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: