Patches item #435679, was opened at 2001-06-23 06:58
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305757&aid=435679&group_id=5757

Category: DynAPI 2 API
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Michael Pemberton (mpember)
Assigned to: Nobody/Anonymous (nobody)
Summary: Document dimensions

Initial Comment:
I have noticed with my drag_frame example, the framed document's dimensions are not 
accurate.  
The following method fixes this by making the required adjustments.

DynDocument.prototype.findDimensions=function() {
        this.w=(is.ns||is.opera) ? this.elm.innerWidth : this.doc.body.clientWidth;
        this.h=(is.ns||is.opera) ? this.elm.innerHeight : this.doc.body.clientHeight;
        if (is.ns && this.frame.parent.frames.length>1) {
                if (is.ns4) { this.w=this.w+4; this.h=this.h+4; }
                else this.h=this.h-2;
        };
        return;
};


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305757&aid=435679&group_id=5757

_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev

Reply via email to