At 2001-05-25 00:46, you wrote:
>Your right, a dynlayer is a layer.
>I meant that they use no divs or spans, only layers, while we do, at least
>in the widgets.
>I was just trying to figure out how come you could resize their page as much
>as you want, in NS4.
>They don't use any onresize handler that I can see.
It isn't needed. When resizing NS4 the browser just throws away the representation and
recreates the HTML part. The different URLs you all have given examples of use
document.write() WHILE the page is loading, not after as is done in DynAPI.onLoad().
The "fix" that was in the code previously had something along these lines:
DynDocument.resizeHandler = function() {
var dyndoc = this.dyndoc;
var w = dyndoc.getWidth();
var h = dyndoc.getHeight();
dyndoc.findDimensions();
if(is.ns4 && (w!=dyndoc.getWidth() || h!=dyndoc.getHeight()))
dyndoc.recreateAll();
if(DynAPI.onResize)
DynAPI.onResize();
}
window.onresize = DynDocument.resizeHandler;
DynDocument.prototype.recreateAll = function() {
this.setBgColor(this.bgColor);
this.setFgColor(this.fgColor);
for(var i=0; i<this.children.length; i++) {
var child = this.children[i];
if(child.created) {
child.elm = null; // !!!!!!
child.deleteElement();
child.createElement();
}
}
}
I think the deleteElement method was also fixed to handle this case.
/Lunna
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help