Closed Bug 211211 Opened 21 years ago Closed 21 years ago

wrong display behaviour with div having height:100% and overflow:auto

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 210657

People

(Reporter: debugger, Unassigned)

References

()

Details

(Keywords: qawanted)

Attachments

(1 file, 1 obsolete file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Having a div with style="width:100%; height:100%; overflow:auto" in a table with height="100%". This renders correctly as long as the content of the div is not longer than the displayed area of the layer. If the div has an absolute height like 400px then everything works fine. Also the with of 100% does not seem to be a problem, just the height in %. This behaviour also occures if we don't use javascipt to replace the div's content. Just try this example by filling the div with plenty of content in HTML source. I simply build in javascript to visualize the problem. Reproducible: Always Steps to Reproduce: 1. open the page 2. click on "write layer" 3. see the results Actual Results: Instead of only displaying scrollbars on the div, the whole page gets scrollbars as well as the layer. Expected Results: I expect the layer to show up always the same size (with little or much content) and display a scrollbar if the content flows over.
Attached file simple testcase (obsolete) —
Attached file plain-HTML testcase
Attachment #126808 - Attachment is obsolete: true
This has nothing to do with the DOM if it occurs in a static page... over to layout.
Assignee: dom_bugs → other
Component: DOM Style → Layout
Keywords: qawanted
OS: Windows 2000 → All
Hardware: PC → All
Whiteboard: DUPEME
*** This bug has been marked as a duplicate of 210657 ***
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.

Attachment

General

Created:
Updated:
Size: