Closed
Bug 245889
Opened 21 years ago
Closed 21 years ago
changing style: display=none to block results in extra spaces
Categories
(Core :: Web Painting, defect)
Tracking
()
People
(Reporter: sliu, Assigned: roc)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040514
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040514
I have add style for TR:
<TR ID='AddAttachmentSection' style='display:none;'>
and use javascript to control is display:
var attachmentSectionShown=false;
var attachmentsShown=true;
function toggleAddAttachmentSection()
{
document.getElementById("AddAttachmentSection").style.display=(attachmentSectionShown?"none":"block");
attachmentSectionShown=!attachmentSectionShown;
}
If the function above called several times, some extra spaces will be added
under the TR
Reproducible: Always
Steps to Reproduce:
1. Visit http://www.plmatrix.com/abc.html
2. Click "Add Attachments".
3. Click "Add Attachments" again and again.
Actual Results:
Some extra spaces was added above "Button Here"
Expected Results:
Visit http://www.plmatrix.com/abc.html in IE
Change from:
<TR ID='AddAttachmentSection' style='display:none;'><TD>
<TABLE>
<TR><TD>HELLO, MOZILLA</TD></TR>
</TABLE>
</TD></TR>
To:
<TR ><TD>
<TABLE ID='AddAttachmentSection' style='display:none;'>
<TR><TD>HELLO, MOZILLA</TD></TR>
</TABLE>
</TD></TR>
Will works OK.
Comment 2•21 years ago
|
||
*** This bug has been marked as a duplicate of 97506 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Comment 3•21 years ago
|
||
Verified, I guess, but this is a slightly different issue... Just using ""
instead of "block" will fix the page in question ("block" on a table row does
something quite different from the default "table-row" display value in all
browsers but IE).
Status: RESOLVED → VERIFIED
Updated•7 years ago
|
Component: Layout: View Rendering → Layout: Web Painting
You need to log in
before you can comment on or make changes to this bug.
Description
•