IFRAME has scrollbar when it shouldn't

VERIFIED FIXED

Status

()

Core
Layout: HTML Frames
P2
normal
VERIFIED FIXED
19 years ago
18 years ago

People

(Reporter: rods (gone), Assigned: buster)

Tracking

Trunk
x86
Windows NT
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

19 years ago
IFRAMEs that have a child that has its width set to 100% cause a scrollbar to
display and it shouldn't

Here are the test files:
iframe_main.html
---------------------------------
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#C0C0C0">
<iframe src="iframe_test.html" width="100%" height="34" ></iframe>
</body>
</html>


iframe_test.html
---------------------------
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<body bgcolor="#C0C0C0"  style="margin: 0px;">
<center>
<HR width="100%">
</center>
</body>
</html>

Comment 1

19 years ago
Here is a simpler example. This should be run against version 3.41 or higher of
nsFrameFrame.cpp.

<html><body>
<iframe scrolling=auto src="test00.html" width=100 height=100></iframe>
</body></html>

<html><body>
<HR style="width:100%;">
</body></html>

The <iframe>'s document (2nd webshell in a dump frames) gets a horizontal
scrollbar because the area frame is wider than the scroll frame. The area frame
should not be this wide. The main document's FrameInner is 72x72 as is the 2nd
document's scroll frame.
Assignee: karnaze → kipp

Updated

19 years ago
Status: NEW → ASSIGNED

Updated

19 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → FIXED

Comment 2

19 years ago
HR's were fixed awhile back to properly compute their size so this no longer
happens

Updated

19 years ago
Status: RESOLVED → VERIFIED

Comment 3

19 years ago
Per run of last entered test cases this appears fixed, checked with Mar22 builds
You need to log in before you can comment on or make changes to this bug.