Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ng-Drag-Clone Not appearing in proper position #244

Open
anupkumarsharma opened this issue May 10, 2016 · 1 comment
Open

Ng-Drag-Clone Not appearing in proper position #244

anupkumarsharma opened this issue May 10, 2016 · 1 comment

Comments

@anupkumarsharma
Copy link

Hi,
I am using the ng-draggable library on ui-modal window. I am using the clone as below.

I noticed when the drag starts, the new clone element appears on some offset and not exactly overlapping the element. I looked into code and changed the following code in function onmove()

_tx = _mx - _mrx - _dragOffset.left-230;
ty = _my - _mry - _dragOffset.top-30;

After the code change its working fine. Not sure the only code which seems likely to be the rootcause can be modal window. like $window.pageXOffset may be returning wrong offset. Also It would be nice to add an additional offsets property to library, incase user want to display the clone some where else. Like imagine a switch which moves element in different divs.

@sathishkumar1911
Copy link

Fixed in 2deb92d. Waiting for merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants