Update of /cvsroot/dynapi/dynapi/src/lib/dynapi/api
In directory usw-pr-cvs1:/tmp/cvs-serv22686/src/lib/dynapi/api

Modified Files:
        dynlayer.js 
Log Message:
The initiall onresize ( on layer creation ) was being called before onCreate, and with 
.created = false. I've fixed that. Things are working better now.

Index: dynlayer.js
===================================================================
RCS file: /cvsroot/dynapi/dynapi/src/lib/dynapi/api/dynlayer.js,v
retrieving revision 1.37
retrieving revision 1.38
diff -C2 -r1.37 -r1.38
*** dynlayer.js 2001/03/25 06:04:16     1.37
--- dynlayer.js 2001/03/27 15:34:26     1.38
***************
*** 79,83 ****
                if (this.h==null && this.getContentHeight()>0) 
this.setHeight(this.getContentHeight(), false);
        }
-       this.invokeEvent("resize");
  };
  DynLayer.prototype.assignChildren=function() {
--- 79,82 ----
***************
*** 94,98 ****
                        child.frame=this.frame;
                        child.assignChildren();
-                       child.invokeEvent("resize");
                        if (child.z) child.css.zIndex=child.z;
                }
--- 93,96 ----
***************
*** 107,111 ****
                        child.elm.lyrobj=child;
                        child.assignChildren();
-                       child.invokeEvent("resize");
                        if (child.z) child.css.zIndex=child.z;
                }
--- 105,108 ----
***************
*** 181,184 ****
--- 178,186 ----
        };
  };
+ DynLayer.prototype._oldDL_create = DynLayer.prototype.create
+ DynLayer.prototype.create = function() {
+       this._oldDL_create()
+       this.invokeEvent("resize")
+ }
  
  if (is.ns) {
***************
*** 366,377 ****
                if (is.ns4) return this.doc.height;
                else if (is.ie) {
!                       this.elm.offsetHeight;
!               return parseInt(this.elm.scrollHeight);
!               }
                else {
!                   this.elm.style.height = "auto";
!               var h = this.elm.offsetHeight;
!               this.elm.style.height = this.h;
!               return h;
                }
        }
--- 368,379 ----
                if (is.ns4) return this.doc.height;
                else if (is.ie) {
!                               this.elm.offsetHeight;
!                       return parseInt(this.elm.scrollHeight);
!                       }
                else {
!                       this.elm.style.height = "auto";
!                       var h = this.elm.offsetHeight;
!                       this.elm.style.height = this.h;
!                       return h;
                }
        }


_______________________________________________
Dynapi-CVS mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-cvs

Reply via email to