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

Width of dragged element is not maintained when allowed-transform attribute is set to 'false' #238

Open
dratchkov opened this issue Apr 15, 2016 · 1 comment

Comments

@dratchkov
Copy link

This can be resolved by modifying line 257 to explicitly include width, like so:

element.css({'left':x+'px','top':y+'px', 'position':'fixed', 'width': element[0].offsetWidth+'px'});

-dave

@dratchkov
Copy link
Author

A 'z-index' is also needed:
element.css({'left':x+'px','top':y+'px', 'position':'fixed', 'width': element[0].offsetWidth+'px', 'z-index': 99999});

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

1 participant