Closed Bug 467604 Opened 16 years ago Closed 16 years ago

nested div with overflow:auto stops rendering content if it's long

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 215055

People

(Reporter: tstclair, Unassigned)

Details

User-Agent:       Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4 (.NET CLR 3.5.30729)

when a nested div contains a large amount of content and the parent div has an overflow of auto the inner div will not render the full content.
<div id='contentWrapper' style='overflow:auto'>
  <div class='content'>
    <p>HelloWorldHelloWorldHelloWorldHelloWorldHelloWorldHelloWorld</p>
     <!-- repeat a 1000 times -->
  </div>
</div>
<p>this is the end</p>

Reproducible: Always

Steps to Reproduce:
1.see details
2.
3.
Actual Results:  
large white space is created because the inner div is not completed rendered.  

Expected Results:  
displayed all the content for the inner div
Sounds like bug 215055
(In reply to comment #1)
> Sounds like bug 215055

It certainly sounds related but the problem manifests itself differently and the test cases for #215055 all work just fine for me.  Many explain the content of the page gets garbled and corrupted, with the above test case it just doesn't render at all, at some point you stop seeing the text "HelloWorldHelloWorldHelloWorldHelloWorldHelloWorldHelloWorld" and a large white space is created between the last successful "HelloWord..." and the text "this is the end".

I should note that adding a fixed height to the parent div causes it to render correctly.
example:
<div id='contentWrapper' style='overflow:auto; height:500px'>
Yeah, the bug is only visible if the height or width exceeds a certain length.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.