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

Change drag&drop accept logic on same size items #3519

Closed
wants to merge 1 commit into from

Conversation

Black-Cat
Copy link
Contributor

Fix for #2717

Problem was that ImGui::AcceptDragDropPayload takes the smallest drop target bounding box. In case of no padding it would select window instead of dockspace. This patch fixes problem by accepting last call with the same surface size.
Code for testing can be found in issue.

@ocornut ocornut added drag drop drag and drop docking labels Oct 15, 2020
ocornut pushed a commit that referenced this pull request Oct 15, 2020
…osen the later one. Fixes dragging into a full-window-sized dockspace inside a zero-padded window. (#3519, #2717)
@ocornut
Copy link
Owner

ocornut commented Oct 15, 2020

Nice catch! Thank you. Merged now in master (will be merged in docking shortly later).

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

Successfully merging this pull request may close these issues.

2 participants