Closed Bug 173694 Opened 23 years ago Closed 23 years ago

offsetWidth, offsetHeight

Categories

(Core :: DOM: CSS Object Model, defect)

x86
Windows NT
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: Daniel.Hamann, Assigned: jst)

Details

document.getElementById(this.divName).offsetWidth always returns 0 or undefined as long as width and height are not specified explizitly. I can't find a way to get the width and height of an element the size of only depends on its HTML-content.
You could use the standard getComputedStyle function.... That said, offsetWidth should be working. Could you post a testcase in which it does not?
getComputedStyle works fine in my testcase. I now got an idea of your specification and implementation problems concerning the old offset... methods. Thanks a lot.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.