|
From: Michael P. <mp...@ph...> - 2001-01-09 14:18:34
|
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
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.
<p>Just add the following at the end of the Dynlayer.prototype.addChild:
<p><tt> if (this.isDynDocument && is.ns4) {</tt>
<br><tt> if (child.h+child.y>this.h)
document.height=this.h=child.h+child.y;</tt>
<br><tt> if (child.w+child.x>this.w)
document.width=this.w=child.w+child.x;</tt>
<br><tt> };</tt>
<br><tt></tt>
<p>--
<br>Michael Pemberton
<br>mp...@ph...
<br>ICQ: 12107010
<br> </html>
|