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

Modified Files:
        dynlayer.js 
Log Message:
switched onresize and oncreate events 
it makes more sense to have the oncreate before the onresize 
(widgets can then be created first, and then catch onresize events with full child 
layers inplace..)



Index: dynlayer.js
===================================================================
RCS file: /cvsroot/dynapi/dynapi/src/lib/dynapi/api/dynlayer.js,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -r1.26 -r1.27
*** dynlayer.js 2001/02/11 17:40:24     1.26
--- dynlayer.js 2001/02/15 15:15:00     1.27
***************
*** 98,103 ****
        dlyr.created=true;
        if (dlyr.hasEventListeners) dlyr.captureMouseEvents();
-       dlyr.invokeEvent("resize");
        dlyr.invokeEvent('create');
  };
  DynLayer.deleteElement = function(dlyr) {
--- 98,103 ----
        dlyr.created=true;
        if (dlyr.hasEventListeners) dlyr.captureMouseEvents();
        dlyr.invokeEvent('create');
+       dlyr.invokeEvent("resize");
  };
  DynLayer.deleteElement = function(dlyr) {
***************
*** 149,157 ****
                        if (child.h==null && child.getContentHeight()>0) 
child.setHeight(child.getContentHeight(),false);
                }
!               child.invokeEvent("resize");
                child.created=true;
                if (child.hasEventListeners) child.captureMouseEvents();
-               if (child.z!=null) child.css.zIndex=child.z;
                child.invokeEvent('create');
        }
  };
--- 149,157 ----
                        if (child.h==null && child.getContentHeight()>0) 
child.setHeight(child.getContentHeight(),false);
                }
!               if (child.z!=null) child.css.zIndex=child.z;
                child.created=true;
                if (child.hasEventListeners) child.captureMouseEvents();
                child.invokeEvent('create');
+               child.invokeEvent("resize");
        }
  };


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

Reply via email to