Skip to content

Do not reset css position when using helper: clone #36

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

Closed
wants to merge 1 commit into from

Conversation

kayjtea
Copy link

@kayjtea kayjtea commented Jul 25, 2013

This is actually a work-around for issue with CSS left, top being cleared on drag stop. This is a problem if the draggable has absolute positioning and placeholder: 'keep' is used -- the draggable disappears on drag stop. In my situation I was using helper: clone anyway, so this patch just leaves the draggable's CSS positioning alone since it never changed in the first place.

This also restores the z-index fix of a few commits ago -- the recent refactoring broke that z-index fix. The problem is that mutateDraggable is called within a $timeout() delay, so the z-index fix restores the original z-index, and then the delayed mutateDraggable just blows it away again.

@kayjtea kayjtea mentioned this pull request Jul 25, 2013
@codef0rmer
Copy link
Owner

@tuyen : Can you show me a demo of an issue the PR is sent for?

@RWOverdijk
Copy link

@codef0rmer just look at the demo page... drag the button and drop in on the target. Then scroll down and watch as the button is on top of the navigation bar.

I believe that's a nice example.

@codef0rmer
Copy link
Owner

@RWOverdijk : which demo are you pointing to?

@RWOverdijk
Copy link

@codef0rmer THE demo. http://codef0rmer.github.io/angular-dragdrop/#/ quick demo.

here

@codef0rmer
Copy link
Owner

Oh I see. But the open issue is not about this problem. Anyways, I'll fix both issues.

@RWOverdijk
Copy link

Alright. Sorry. I thought it would be helpful. :)

@codef0rmer
Copy link
Owner

Duplicate of #128

@codef0rmer codef0rmer closed this Oct 1, 2014
codef0rmer pushed a commit that referenced this pull request Oct 1, 2014
  - Closes #125, #121, #99 - Fix paradox of choice ($ vs jQuery)
  - Closes #122 - Update jQueryUI depedency in demos and tests
  - Closes #130 - Restore display value if set, else use block
  - Closes #128, #36, #30 - Restore zIndex value always
  - Closes #117, #110 - Fix destroying widgets prior to initialization
  - Closes #111 - Allow dropping without ngModel similar to dragging
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

Successfully merging this pull request may close these issues.

3 participants