Closed Bug 124956 Opened 23 years ago Closed 23 years ago

Showing and hiding table row makes table grow

Categories

(Core :: Layout: Tables, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 97506

People

(Reporter: skrulx, Assigned: karnaze)

Details

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.8) Gecko/20020204 BuildID: 2002020406 I have a 3x2 table and want to hide and show the middle row. Hiding the middle row works properly, however, when I unhide it, the middle row appears a little taller with its columns misaligned. Hiding and showing the middle row again causes the table to grow even more. Reproducible: Always Steps to Reproduce: 1. Use the HTML from the additional information field below 2. Click on the hide button 3. Click on the show button 4. Goto step # Actual Results: The middle row's columns were misalined when it reappeared, plus the row grows in height Expected Results: The middle show should appear the same as it was before it was hidden <html> <head> <script> function hide_row() { document.getElementById("row").style.display = "none"; } function show_row() { document.getElementById("row").style.display = "inline"; } </script> </head> <body> <form> <input type="button" value="hide" onclick="hide_row();"><br> <input type="button" value="show" onclick="show_row();"><br> </form> <table border="1"> <tr><td>Row 1</td><td>foo</td></tr> <tr id="row"><td>Row 2</td><td>bar</td></tr> <tr><td>Row 3</td><td>baz</td></tr> </table> </body> </html>
> function show_row() { > document.getElementById("row").style.display = "inline"; > } Try using display = ""; The correct display value for a table row is "table-row". If you do "inline" it can no longer legally be part of the table... I assume we split up the table into multiple tables at that point.... This is already filed, by the way. Can't locate the original at the moment.
Assignee: attinasi → karnaze
Component: Layout → HTMLTables
QA Contact: petersen → amar
Whiteboard: DUPEME
*** This bug has been marked as a duplicate of 135994 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Sorry, that's actually a different bug...
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
*** This bug has been marked as a duplicate of 97506 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → DUPLICATE
Whiteboard: DUPEME
You need to log in before you can comment on or make changes to this bug.