Closed Bug 5057 Opened 25 years ago Closed 25 years ago

Window.scrollBy method does not work.

Categories

(Core :: DOM: Core & HTML, defect, P3)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: desale, Assigned: joki)

Details

(Whiteboard: [TESTCASE] minimal window.scrollBy example.)

Attachments

(1 file)

Window.scrollBy mthod does not work.

Providing information to simulate the problem.

Product: Seamonkey.[apprunner]
Build Date: 04/13/99
Platform: PC [Windows-95]

Steps to Reproduce:
1] Please copy the code I'm providing. Save as HTML file.
2] Open this HTML file in apprunner.
3] you'll find one button on tip called "Scroll Down".
4] Click that button.


Expected Results: As soon as you click that button, window should be scrolled
down automatically till last.

Actual Results: Window does not scroll down.


Code:

<html>
<head>
<title>Window Scroll</title>
</head>
<script>
<!--
function scrolltest1(){
for ( i = 0; i < 200; i=i+2) {
self.scrollBy(0,20)
}
}

function scrolltest2(){
for ( i = 0; i < 200; i=i+2) {
self.scrollBy(0,-20)
}
}
//-->
</script>
<body >
<form>
 <input type="button" name="testing" Value="Scroll Down"
onclick="scrolltest1();"><br>

	<h1>This is a junk text written here. This junk text is written in order
	to see the scroll bars.</h1>
<h1>This is a junk text written here. This junk text is written in order
	to see the scroll bars.</h1>
<h1>This is a junk text written here. This junk text is written in order
	to see the scroll bars.</h1>
<h1>This is a junk text written here. This junk text is written in order
	to see the scroll bars.</h1>
<h1>This is a junk text written here. This junk text is written in order
	to see the scroll bars.</h1>
<h1>This is a junk text written here. This junk text is written in order
	to see the scroll bars.</h1>
<h1>This is a junk text written here. This junk text is written in order
	to see the scroll bars.</h1>
<h1>This is a junk text written here. This junk text is written in order
	to see the scroll bars.</h1>
<h1>This is a junk text written here. This junk text is written in order
	to see the scroll bars.</h1>
<h1>This is a junk text written here. This junk text is written in order
	to see the scroll bars.</h1>
<h1>This is a junk text written here. This junk text is written in order
	to see the scroll bars.</h1>

<input type="button" name="testing1" Value="Scroll Up"
onclick="scrolltest2();"><br>
</form>

</body>
</html>
Summary: Window.scrollBy mthod does not work. → Window.scrollBy method does not work.
Window.scrollTo method also does not work. Since both methods are related, I'm
not entering seperate bug for it.
Assignee: vidur → joki
Didn't I see this yesterday? Hmm....
Whiteboard: [TESTCASE] minimal window.scrollBy example.
desale@netscape.com's testcase can not be much further simplified. Still doesn't
work on M7 and on 1999070917 build. For  complete bug report see desale's
comment.
OS: Windows 95 → All
Hardware: PC → All
Target Milestone: M14
This is broken on Macintosh today so changing platform/os to ALL.  Set to M14
(post-beta) since this isn't a crasher.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
I believe this may have just been fixed by Vidur.
Status: RESOLVED → VERIFIED
Tested with 10-09-09 builds. Working fine. Marking verified.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: