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)

x86
Other
defect

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: martin.honnen, Assigned: karnaze)

Details

(Keywords: dom1)

Attachments

(1 file)

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>
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
Keywords: dom1
QA contact Update
QA Contact: janc → desale
WORKSFORME on Linuxbuild 2001052621 Please verify
Updating QA contact to Shivakiran Tummala.
QA Contact: desale → stummala
Worksforme on 0.9.4 linux&win and on a cvs debug build from today (linux). Could anyone else verify please?
wfm based on Fabian's comments.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
works for me . verified on win2k 2001-10-30-03 and linux 2001-10-30-12
Status: RESOLVED → VERIFIED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: