Update of /cvsroot/dynapi/dynapi/src/lib/dynapi/api In directory usw-pr-cvs1:/tmp/cvs-serv15351 Modified Files: dynlayer.js dyndocument.js Log Message: NS Resize Fix to DynLayer and DynDocument (required small changes to specificCreate in dynlayer.js) Index: dynlayer.js =================================================================== RCS file: /cvsroot/dynapi/dynapi/src/lib/dynapi/api/dynlayer.js,v retrieving revision 1.60 retrieving revision 1.61 diff -C2 -r1.60 -r1.61 *** dynlayer.js 2001/06/19 00:06:58 1.60 --- dynlayer.js 2001/06/20 02:32:18 1.61 *************** *** 27,32 **** DynLayer.prototype = new DynObject(); DynLayer.prototype.isDynLayer = true; ! DynLayer.prototype.specificCreate=function(recreate) { ! if (!recreate&&(this.created||!this.parent||this.elm!=null)) return null; if (is.ns6) { var parentElement=(this.parent.isDynLayer)?this.parent.elm:this.parent.doc.body; --- 27,32 ---- DynLayer.prototype = new DynObject(); DynLayer.prototype.isDynLayer = true; ! DynLayer.prototype.specificCreate=function() { ! if (!this.parent||this.elm) return; if (is.ns6) { var parentElement=(this.parent.isDynLayer)?this.parent.elm:this.parent.doc.body; *************** *** 46,54 **** } else if (is.ns4) { var recycled=this.parent.doc.recycled; ! if (recycled && recycled.length>0 && !recreate) { this.elm=recycled[0]; Methods.removeFromArray(recycled,recycled[0]); } else { - if (recreate) this.parent.doc.recycled=[]; this.elm=new Layer(this.w,this.parent.elm); this.elm.captureEvents(Event.LOAD); --- 46,53 ---- } else if (is.ns4) { var recycled=this.parent.doc.recycled; ! if (recycled && recycled.length>0) { this.elm=recycled[0]; Methods.removeFromArray(recycled,recycled[0]); } else { this.elm=new Layer(this.w,this.parent.elm); this.elm.captureEvents(Event.LOAD); Index: dyndocument.js =================================================================== RCS file: /cvsroot/dynapi/dynapi/src/lib/dynapi/api/dyndocument.js,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -r1.17 -r1.18 *** dyndocument.js 2001/06/19 00:06:58 1.17 --- dyndocument.js 2001/06/20 02:32:18 1.18 *************** *** 67,71 **** if (is.ns4&&((this.w!=w)||(this.h!=h))) { for (var i=0;i<this.children.length;i++) { ! this.children[i].specificCreate(true); } } --- 67,72 ---- if (is.ns4&&((this.w!=w)||(this.h!=h))) { for (var i=0;i<this.children.length;i++) { ! this.children[i].elm=null; ! this.children[i].specificCreate(); } } _______________________________________________ Dynapi-CVS mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/dynapi-cvs