Closed Bug 224078 Opened 21 years ago Closed 21 years ago

using max-height: 80px and overflow: auto for the tbody style causes that the scrollbar hides the table cells

Categories

(Core :: Layout, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 28800

People

(Reporter: Wolfgang_Messingschlager, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007 Firebird/0.7
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007 Firebird/0.7

I defined a CSS style for tbody: 
    tbody.scroll { max-height: 80px; overflow: auto;  }
My tbody size is larger than 80 px and the scrollbar gets visible as expected.
However the scrollbar hides the cell contents of the last column

Reproducible: Always

Steps to Reproduce:
test example:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
                      "http://www.w3.org/TR/html4/strict.dtd">

<html><head>
<meta content="text/html; charset=ISO-8859-15" http-equiv="Content-Type">
	<title>table data (header 2)<scrollbar</title>
	<style type="text/css">
		tbody.scroll { max-height: 80px; overflow: auto;  }
      </style>
</head>
<body>
<table>
	<thead>
		<tr>
			<td>header 1</td>
			<td>longsecondheader</td>
<!--			<td>--</td>                        -->
		</tr>
	</thead>
		<tbody class="scroll">
			<tr>
				<td>this is a long bit of data (header 1)</td>
				<td>this is a long bit of data (header 2)</td>
			</tr>
			<tr>
				<td>this is a long bit of data (header 1)</td>
				<td>this is a long bit of data (header 2)</td>
			</tr>
			<tr>
				<td>this is a long bit of data (header 1)</td>
				<td>this is a long bit of data (header 2)</td>
			</tr>
			<tr>
				<td>this is a long bit of data (header 1)</td>
				<td>this is a long bit of data (header 2)</td>
			</tr>
		</tbody>
	</table>

</body>
</html>
Actual Results:  
the scrollbar hides the cell contents of the last column

Expected Results:  
the scrollbar will be rendered so that it doesn't hide the table cells contents

If you delete the comment in the thead section and you add a third column then
the scrollbar will not hide the contents of the table cells
->Browser/Layout
Assignee: blake → other
Component: General → Layout
Product: Firebird → Browser
QA Contact: ian
Version: unspecified → Trunk
The width gets determined _before_ we put in the scrollbars (since the height
depends on the width and if we did it the other way there would be situations
where we would go into infinite loops).
Whiteboard: DUPEME
via bug 154301

*** This bug has been marked as a duplicate of 28800 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Whiteboard: DUPEME
You need to log in before you can comment on or make changes to this bug.