W3C home > Mailing lists > Public > www-amaya@w3.org > April to June 2006

cannot scroll to the bottom of the page when using absolute reference in <div> elements

From: <ferperez@cs.cmu.edu>
Date: Thu, 04 May 2006 05:20:34 +0000
Message-ID: <2522.128.237.234.186.1146720029.squirrel@webmail.cs.cmu.edu>
To: www-amaya@w3.org




Hello;

If I create a division and position if using absolute reference, moving
the element down using div styles and top: , amaya doesn't allow to scroll
to the bottom of the page. Instead of that, it stops before, as if the
vertical size of the page is smaller than the actual size.

I attach a simple page demonstrating this problem.
(i am working at 1024*768 . If your screen resolution is higher, and the
entire page fits on the screen, just add more hello<br> lines, or use a
bigger typeface until a scroll bar appears)

Expected behavior: if you scroll down until the end of the page, you
should see the last line contained in the division (which reads 'last
line')

Actual behavior: amaya reachs the end of the page, and don't display many
of the last lines.

The page displays fine on all browsers.

I'm using amaya 9.51 and Windows XP.

Thanks,
Fernando

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
  <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
  <title>Test page</title>
  <meta name="generator" content="amaya 9.51, see
http://www.w3.org/Amaya/" />
</head>

<body>
<div style="position:absolute; top:300px;">
first line<br />
hello<br />
hello<br />
hello<br />
hello<br />
hello<br />
hello<br />
hello<br />
hello<br />
hello<br />
hello<br />
hello<br />
hello<br />
hello<br />
hello<br />
hello<br />
hello<br />
hello<br />
hello<br />
hello<br />
hello<br />
hello<br />
hello<br />
hello<br />
hello<br />
hello<br />
hello<br />
hello<br />
hello<br />
hello<br />
hello<br />
last line</div>
</body>
</html>
Received on Thursday, 4 May 2006 07:03:10 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:53:36 UTC