Closed
Bug 61657
Opened 25 years ago
Closed 24 years ago
setting TD.height from JavaScript doesn't work reliably
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
VERIFIED
WORKSFORME
People
(Reporter: martin.honnen, Assigned: karnaze)
Details
(Keywords: dom1)
Attachments
(1 file)
|
538 bytes,
text/html
|
Details |
When you try to set the height of a TD element the property value is changed
reliably but the layout changes only sometimes.
In the example below when you click the button the first time the layout of the
cell changes, then it takes several clicks to change the layout again
<HTML>
<HEAD>
</HEAD>
<BODY>
<BUTTON ONCLICK="var cell = document.getElementById('aCell');
if (!cell.height)
cell.height = '100';
else
cell.height = parseInt(cell.height) + 50;
cell.innerHTML = cell.height;"
>
set cell height
</BUTTON>
<BR>
<TABLE BORDER="1">
<TR>
<TD ID="aCell" BGCOLOR="orange" VALIGN="top">
without height
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
| Reporter | ||
Comment 1•25 years ago
|
||
Comment 2•25 years ago
|
||
AFAICT the DOM code does what it should here, the height attribute is updated
and the document is notified about the attribute change but the reflow doesn't
happen, reassigning to karnaze.
Assignee: jst → karnaze
Comment 4•24 years ago
|
||
WORKSFORME on Linuxbuild 2001052621
Please verify
Comment 6•24 years ago
|
||
Worksforme on 0.9.4 linux&win and on a cvs debug build from today (linux). Could
anyone else verify please?
| Assignee | ||
Comment 7•24 years ago
|
||
wfm based on Fabian's comments.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
Comment 8•24 years ago
|
||
works for me . verified on win2k 2001-10-30-03 and linux 2001-10-30-12
Status: RESOLVED → VERIFIED
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•