Closed Bug 3177 Opened 26 years ago Closed 26 years ago

IFRAME has scrollbar when it shouldn't

Categories

(Core :: Layout: Images, Video, and HTML Frames, defect, P2)

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: rods, Assigned: buster)

Details

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>
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
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
HR's were fixed awhile back to properly compute their size so this no longer happens
Status: RESOLVED → VERIFIED
Per run of last entered test cases this appears fixed, checked with Mar22 builds
Product: Core → Core Graveyard
Component: Layout: HTML Frames → Layout: Images
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.