Skip to content

z-index #30

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
Blaze34 opened this issue Jul 5, 2013 · 3 comments
Closed

z-index #30

Blaze34 opened this issue Jul 5, 2013 · 3 comments

Comments

@Blaze34
Copy link

Blaze34 commented Jul 5, 2013

You shouldn't set z-index in directive.

zIndex = $(this).css('z-index');
$(this).css('z-index', 99999);

and

$(this).css('z-index', zIndex);

It caused a bug, when set drag option {helper:'clone'}.

Use jQueryUIDraggable option zIndex

@codef0rmer
Copy link
Owner

What kind of bug are you referring at? The only issue I think of is that zIndex can not be customized for now and jQueryUI draggable's zIndex option would be helpful in this scenario.

@kayjtea
Copy link

kayjtea commented Jul 25, 2013

Issue is that z-index is not being restored, despite the line that set z-index back to initial value. This is because mutateDraggable is being called in a timeout delay. The delayed mutateDraggable clears the z-index. See pull request (#36) I just made, 'Do not reset css position when using helper: clone'

@codef0rmer
Copy link
Owner

Duplicate of #128

codef0rmer pushed a commit that referenced this issue 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

No branches or pull requests

3 participants