Update of /cvsroot/dynapi/dynapi/src/lib/dynapi/api
In directory usw-pr-cvs1:/tmp/cvs-serv2967
Modified Files:
dyndocument.js
Log Message:
- changed setxxColor logic for ns4
Index: dyndocument.js
===================================================================
RCS file: /cvsroot/dynapi/dynapi/src/lib/dynapi/api/dyndocument.js,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** dyndocument.js 2001/06/10 22:44:28 1.15
--- dyndocument.js 2001/06/16 04:03:34 1.16
***************
*** 13,17 ****
this.fgColor = this.doc.fgColor||'';
this.bgColor = this.doc.bgColor||'';
! this.elm.lyrobj=this;this.doc.lyrobj=this;
this.findDimensions();
}
--- 13,18 ----
this.fgColor = this.doc.fgColor||'';
this.bgColor = this.doc.bgColor||'';
! this.elm.lyrobj=this;
! this.doc.lyrobj=this;
this.findDimensions();
}
***************
*** 25,29 ****
};
DynDocument.prototype.specificRemove=function() {
! this.elm=this.doc=this.frame=null;
};
DynDocument.prototype.getX=function() { return 0; };
--- 26,32 ----
};
DynDocument.prototype.specificRemove=function() {
! this.elm=null;
! this.doc=null;
! this.frame=null;
};
DynDocument.prototype.getX=function() { return 0; };
***************
*** 37,49 ****
DynDocument.prototype.getHeight = function() {
if (!this.h) this.findDimensions();
! return this.h
};
DynDocument.prototype.findDimensions = function() {
! this.w=(is.ns || is.opera)? this.elm.innerWidth : this.doc.body.clientWidth;
! this.h=(is.ns || is.opera)? this.elm.innerHeight : this.doc.body.clientHeight;
};
DynDocument.prototype.setBgColor = function(color) {
if (color == null) color='';
! if (color == '' && is.ns4) color = '#ffffff';
this.bgColor = color;
this.doc.bgColor = color;
--- 40,52 ----
DynDocument.prototype.getHeight = function() {
if (!this.h) this.findDimensions();
! return this.h;
};
DynDocument.prototype.findDimensions = function() {
! this.w=(is.ns||is.opera)? this.elm.innerWidth : this.doc.body.clientWidth;
! this.h=(is.ns||is.opera)? this.elm.innerHeight : this.doc.body.clientHeight;
};
DynDocument.prototype.setBgColor = function(color) {
if (color == null) color='';
! if (is.ns4 && color == '') color = '#ffffff';
this.bgColor = color;
this.doc.bgColor = color;
***************
*** 51,55 ****
DynDocument.prototype.setFgColor = function(color) {
if (color == null) color='';
! if (color == '' && is.ns4) color='#ffffff';
this.fgColor = color;
this.doc.fgColor = color;
--- 54,58 ----
DynDocument.prototype.setFgColor = function(color) {
if (color == null) color='';
! if (is.ns4 && color == '') color='#ffffff';
this.fgColor = color;
this.doc.fgColor = color;
***************
*** 65,70 ****
DynObject.recreate=true;
if(w!=this.w || h!=this.h) {
! var l=this.children.length;
! for (var i=0;i<l;i++)
this.children[i].specificCreate(true);
}
DynObject.recreate=false;
--- 68,73 ----
DynObject.recreate=true;
if(w!=this.w || h!=this.h) {
! var l=this.children.length;
! for (var i=0;i<l;i++) this.children[i].specificCreate(true);
}
DynObject.recreate=false;
_______________________________________________
Dynapi-CVS mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-cvs