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

Chromium: Default drag image too large #89

Open
bodograumann opened this issue Oct 26, 2020 · 1 comment
Open

Chromium: Default drag image too large #89

bodograumann opened this issue Oct 26, 2020 · 1 comment

Comments

@bodograumann
Copy link

In all Chromium-based browsers, when not explicitly setting the image or #image-slot, the drag renders a huge image.
From the live example:

drag-drop

The reason for this is, that by default the #image-slot is rendered with <div style="position: fixed; top: -1000px"></div> as a child of <Drag>. Chromium considers this part of the dragged element.

Workaround

As a workaround it is possible to set <Drag :hide-image-html="false">.

Solution

The hidden container element should probably have v-if="$slots.image".

@edbond88
Copy link

Same problem in Chrome

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

2 participants