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

Remove transforms after drop to prevent overlap of adjacent children #1654

Merged
merged 2 commits into from
Oct 12, 2019

Conversation

ohepworthbell
Copy link
Contributor

As mentioned in #1644 (and demoed here: https://jsfiddle.net/4kcbzLse/) there is a transform: translateZ(0) added when an item is first dragged, but this is not then removed when an item is dropped. This can cause any extruding child elements (such as tooltips) to be overlapped by adjacent content.

When an item is dropped, the now vestigial transform: translateZ(0) is removed, rather than simply left.

@owen-m1 owen-m1 merged commit e979370 into SortableJS:master Oct 12, 2019
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.

2 participants