Update of /cvsroot/dynapi/dynapi/src/lib/dynapi/api
In directory usw-pr-cvs1:/tmp/cvs-serv29635
Modified Files:
dynlayer.js
Log Message:
Fixed IE6 bug ( not receiving events on empty layers )
Index: dynlayer.js
===================================================================
RCS file: /cvsroot/dynapi/dynapi/src/lib/dynapi/api/dynlayer.js,v
retrieving revision 1.72
retrieving revision 1.73
diff -C2 -r1.72 -r1.73
*** dynlayer.js 2002/01/04 14:25:18 1.72
--- dynlayer.js 2002/01/24 17:43:04 1.73
***************
*** 95,100 ****
child.assignChildren();
if (child.z) child.css.zIndex=child.z;
! if (child.w==null && child.getContentWidth()>0) child.setWidth(child.getContentWidth(), false);
! if (child.h==null && child.getContentHeight()>0) child.setHeight(child.getContentHeight(), false);
}
} else if(is.ns4) {
--- 95,100 ----
child.assignChildren();
if (child.z) child.css.zIndex=child.z;
! //if (child.w==null && child.getContentWidth()>0) child.setWidth(child.getContentWidth(), false);
! //if (child.h==null && child.getContentHeight()>0) child.setHeight(child.getContentHeight(), false);
}
} else if(is.ns4) {
***************
*** 112,117 ****
child.assignChildren();
if (child.z) child.css.zIndex=child.z;
! if (child.w==null && child.getContentWidth()>0) child.setWidth(child.getContentWidth(), false);
! if (child.h==null && child.getContentHeight()>0) child.setHeight(child.getContentHeight(), false);
}
}
--- 112,117 ----
child.assignChildren();
if (child.z) child.css.zIndex=child.z;
! //if (child.w==null && child.getContentWidth()>0) child.setWidth(child.getContentWidth(), false);
! //if (child.h==null && child.getContentHeight()>0) child.setHeight(child.getContentHeight(), false);
}
}
***************
*** 160,164 ****
if (this.bgImage!=null) s+=' background-image:url('+this.bgImage+');';
if (this.bgColor!=null) s+=' background-color:'+this.bgColor+';';
! if (is.ie55 && this.bgImage==null && this.html==null) s+=' background-image:url('+DynAPI.librarypath+'dynapi/images/common/transparent.gif);';
if(!inflow) s+=' position:absolute;'; else s+=' position:relative;';
s+=' overflow:hidden">';
--- 160,164 ----
if (this.bgImage!=null) s+=' background-image:url('+this.bgImage+');';
if (this.bgColor!=null) s+=' background-color:'+this.bgColor+';';
! if ((is.ie55 ||is.ie6) && this.bgImage==null && this.html==null) s+=' background-image:url('+DynAPI.librarypath+'dynapi/images/common/transparent.gif);';
if(!inflow) s+=' position:absolute;'; else s+=' position:relative;';
s+=' overflow:hidden">';
|