From: SourceForge.net <no...@so...> - 2005-09-01 20:14:21
|
Bugs item #1257263, was opened at 2005-08-11 19:56 Message generated for change (Comment added) made by doug_melvin You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1257263&group_id=5757 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: DynAPI 3 API Group: None Status: Open Resolution: None Priority: 5 Submitted By: L W (warp9pnt9) Assigned to: Nobody/Anonymous (nobody) Summary: Events send wrong X/Y coords to relative layers. Initial Comment: When setting up a background layer, adding to that a layer with a photograph, and adding to that a layer that you move around (fetch and drag), then there's a problem. The onmousedown event (and others) passes the X and Y coordinates +8 or +9 or so. The upper left corner of the fetched layer stops to the 8 or 9 pixels to the lower right of the cursor. Therefore you can never connect with a drag event. You must release the mouse to stop the onmousedown event from firing, then move the mouse over the layer, and mousedown again to initiate a drag. If I remove the relative insert later in the document, the upper left corner of the fetched layer comes to a stop precisely underneath the mouse cursor. This might be used in a situation when you'll have some text or images or other layers, then you'll want to relatively insert this background layer, with it's photo layer and it's fetchable/draggable layer. You won't know ahead of time how to precisely position the layer on the page, so everything must be done relative to the background layer. Maybe there's another way to do things? I'm still learning myself. I definitely would like to understand where the offset is coming from. I might have a hunch about some thing. test1 example is attached below. ---------------------------------------------------------------------- Comment By: Doug Melvin (doug_melvin) Date: 2005-09-01 13:14 Message: Logged In: YES user_id=184788 where there not a LOT of comments on this bug? or was that confined to the mailing list? Anyways _my_ solution is to use the DynAPI Inline layer extension, then retrieve the posisiton of your relative layer then, suing the x/y obtained, simply proceed with treating your DynLayers as absulte layers.. By this I mean do not add the DynLayer as a child of the relative layer, only retrieve the relative layer's x/7 and width/height. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1257263&group_id=5757 |