Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Drag and drop draw rect not expanded for Selectable inside a table #7049

Closed
arnaud-neny opened this issue Nov 22, 2023 · 2 comments
Closed

Comments

@arnaud-neny
Copy link

Version: 1.90
Branch: docking

Compiler: win32
Operating System: Windows10

When doing a drag and drop after a Selectable inside a table, the draw rect of the drag and drop is not expanded anymore to the selectable but only to the first column width. This was working fine on the previous versions (1.89.90)

imguidnd

// Here's some code anyone can copy and paste to reproduce your issue (add it after the Selectable in the advanced table sample in the demo)
if (ImGui::BeginDragDropSource(ImGuiDragDropFlags_SourceNoPreviewTooltip))
{
ImGui::SetDragDropPayload("TESTDRAW", nullptr, 0);
ImGui::EndDragDropSource();
}
if (ImGui::BeginDragDropTarget())
{
ImGui::AcceptDragDropPayload("TESTDRAW");
ImGui::EndDragDropTarget();
}

@ocornut
Copy link
Owner

ocornut commented Nov 22, 2023

Thank you for the detailed issue. I can confirm this changed with 085ed7b (#4281)
I reckon this is one of the reason it was done the other way before. Will investigate.

@ocornut
Copy link
Owner

ocornut commented Nov 22, 2023

Pushed fix bce4db0.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants