fallen90 / ppdrag

jquery drag
GNU Lesser General Public License v3.0
0 stars 0 forks source link

multiple pop ups using drag #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. http://dsppreview.altosagroup.com/DSPAPP/V/resources/downtown-
directory.html
2. Click go, open a business and drag it somewhere other than the popup 
position.
3. Now click a Map link, see how it reverts back to the default fixed 
position. Is there a way for the window to remember the position before and 
open in that position?

What is the expected output? What do you see instead?

Toggling between a business popup and map popup should hold a drag position 
if the user has moved a window.

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by gweather...@gmail.com on 15 Sep 2008 at 10:41

GoogleCodeExporter commented 9 years ago
PPdrag itself doesn't revert the position of any elements. It only moves them 
using
the "top" and "left" style properties. It's your responsibility to perform any 
other
positioning that is required. I'm guessing that you are creating a new element,
discarding the old one, in which case this is the expected default behaviour.

Original comment by onestone on 15 Sep 2008 at 11:06

GoogleCodeExporter commented 9 years ago
Yes that makes sense to me, so I guess I would have to create a cookie to 
remember 
the current position for object1 and load object to in that relative x y, right?

Original comment by gweather...@gmail.com on 15 Sep 2008 at 11:20

GoogleCodeExporter commented 9 years ago
That's one solution, but is not really necessary. You can remember the objects's
position in regular JavaScript variable(s).

Original comment by onestone on 15 Sep 2008 at 11:29

GoogleCodeExporter commented 9 years ago
Hmm interesting, not sure how to do this..

Original comment by gweather...@gmail.com on 16 Sep 2008 at 5:58