|
From: Doug M. <do...@cr...> - 2001-01-09 18:02:43
|
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 -----=20
From: Michael Pemberton=20
To: dyn...@li...=20
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.=20
Just add the following at the end of the Dynlayer.prototype.addChild:=20
if (this.isDynDocument && is.ns4) {=20
if (child.h+child.y>this.h) =
document.height=3Dthis.h=3Dchild.h+child.y;=20
if (child.w+child.x>this.w) =
document.width=3Dthis.w=3Dchild.w+child.x;=20
};=20
=20
--=20
Michael Pemberton=20
mp...@ph...=20
ICQ: 12107010=20
_______________________________________________ Dynapi-Dev mailing =
list Dyn...@li... =
http://lists.sourceforge.net/mailman/listinfo/dynapi-dev
|