|
As if it where that simple!!!
I spent a good month trying to do just
that..
Shows you waht can happen when you gather many
minds into a forum such as this eh?
Good job.
Doug Melvin
----- Original Message -----
Sent: Tuesday, January 09, 2001 6:18
AM
Subject: [Dynapi-Dev] NS4 and document
size adjustment when adding children
I've found a oneway method of allowing NS4 to increase the
document size if the child is outside the current dimensions.
Unfortunately, once the size is increased, it can't be decreased.
Just add the following at the end of the Dynlayer.prototype.addChild:
if (this.isDynDocument && is.ns4) {
if
(child.h+child.y>this.h) document.height=this.h=child.h+child.y;
if
(child.w+child.x>this.w) document.width=this.w=child.w+child.x;
};
-- Michael Pemberton [EMAIL PROTECTED] ICQ: 12107010
_______________________________________________ Dynapi-Dev mailing
list [EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/dynapi-dev
|