Closed Bug 961 Opened 22 years ago Closed 21 years ago
[BLOCKER] Document dimensions not exposed to JS yet
357 bytes, text/html
document.width window.innerWidth window.outerWidth ... not implemented yet. I need to get this value for some XPFE stuff I'm working on. I do not need set yet.
window.innerWidth should work now. window.outerWidth waiting on api's into widget stuff. we'll need to decide what to do with document.width
Setting all current Open/Normal to M4.
per leger, assigning QA contacts to all open bugs without QA contacts according to list at http://bugzilla.mozilla.org/describecomponents.cgi?product=Browser
QA contact re-assigned according to the product areas we're currently working on.
Component updated to DOM Level 0.
Not critical for M4 at this point, moving to M5
Moving out to M7
Summary: Document/Window dimensions not exposed to JS yet → Document dimensions not exposed to JS yet
Target Milestone: M8 → M11
I believe the window parts of this now work. Just the document dimensions don't. Those are less important and less well defined. Chaning summary and pushing farther down.
Whiteboard: [MAKINGTEST] firstname.lastname@example.org → [TESTCASE] document.width not implemented yet
Overview Description: document.width is not implemented yet Steps to reproduce: load the attachment. Note that window.innerWidth, window.outerWidth and document.width are read. Actual Results: You get values for window.innerWidth and window.outerWidth, and document.width = undefined Expected Results: document.width = [any number] Build Date & Platform: M7 and 1999070917 build (Win32) Additional information: the innerWidth/outerWidth implementation seems to be buggy, I'll file an extra bug report for that.
jfyi: the window.[inner|outer]Width bug is #9606. I did not send a dependency to this bug, as bug #961 is now limited to document.width
I need document.height too.
Summary: Document dimensions not exposed to JS yet → [BLOCKER] Document dimensions not exposed to JS yet
Upgrading to blocker.
Joki said I could have this one; could use advice from troy or kipp for source of document height and width in pixels. /be
I see that the document height and width is computed in nsScrollFrame::Reflow() and nsGfxScrollFrame::Reflow(). The values are not saved into any member variables. I am not sure how you would get these values to nsHTMLDocument::GetWidth() and nsHTMLDocument::GetHeight().
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Fix checked in on 10/6/1999. Reviewed by Troy.
Tested with 10-09-09. Working fine. Marking verified.
You need to log in before you can comment on or make changes to this bug.