Patches item #424582, was updated on 2001-05-16 09:09
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305757&aid=424582&group_id=5757

Category: DynAPI 2 Event
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Michael Pemberton (mpember)
Assigned to: Nobody/Anonymous (nobody)
Summary: dragBoundary patch

Initial Comment:
I found that there was a problem with the drag boundry when the layer has a dynamic 
width / 
height.

Because the lyr.w / lyr.h values were set as null, the boundry was not working 
properly.

To this end, I have included the attached version of dragevent.js

You will find that there are two changes being made:

60      if (lyr.h==null) { lyr.DragHFix=true; lyr.h=lyr.getContentHeight(); };
61      if (lyr.w==null) { lyr.DragWFix=true; lyr.w=lyr.getContentWidth(); };

128     if (lyr.DragHFix) { delete lyr.DragHFix; lyr.h=null; };
129     if (lyr.DragWFix) { delete lyr.DragWFix; lyr.w=null; };

These lines calculate the layer size when the drag starts so that the boundary is 
correct.  It then 
resets the width / heigh values to null when the drag ends.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305757&aid=424582&group_id=5757

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

Reply via email to