Closed Bug 247078 Opened 20 years ago Closed 20 years ago

toggling style.display (none/block) on TR tags messes up contents of rows

Categories

(Core :: Layout: Tables, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 97506

People

(Reporter: per, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040206 Firefox/0.8
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040206 Firefox/0.8

When you hide a table-row using the CSS property style.display='none' and then
setting it back to display='block' it messes up the rendering of the cells. 

First all cells of the row are displayed in the first column of the table. 
Secondly there's an additional vertical space added which keeps on growing if
you continue toggling the style.display property. This space is showing even on
"display:none". 



Reproducible: Always
Steps to Reproduce:
1. Go to: http://www.digre.com/mozillabugs/collapsebug.htm
2. Click on Hide 2, then on Show 2
3. Notice the cells of row 2 all appears in first column
4. Repeat and notice the vertical space that grows 




I've seen this on latest versions of Firefox and Mozilla on Windows, also on Mac
OSX, Mozilla 1.7RC3 so I assume this applies to all platforms.

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