Skip to content
This repository was archived by the owner on Jun 18, 2018. It is now read-only.

Preview position wrong with absolute positioned elements inside DragSource #61

Open
danielbrodin opened this issue Jan 20, 2017 · 0 comments

Comments

@danielbrodin
Copy link

Hey,

I have an element that I'm dragging around and it works great by itself, but that element could have an icon attached to it with position: absolute; left: -24px; which breaks the positioning.

This html5-backend doesn't care about the icon which it shouldn't, but the native drag and drop api does, since it includes the icon in the preview rendering, so when the html5-backend tries to fix the position it instead breaks it for me.

Is there a way for me to kinda hijack the positioning function and just add a couple of pixels to the x coordinate that it creates?

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

No branches or pull requests

1 participant