Tables: fixed seemingly unnecessarily copy of ImGuiTableColumnFlags_NoDirectResize_ which broken resizing from W3| in a F1 W3 F2 setup. Header only allow overlap on hover, not when active (amend f2df804f)

Otherwise TableUpdateBorders() tends to override mouse cursor.
This commit is contained in:
ocornut
2020-12-16 15:27:17 +01:00
parent 892b48e2d6
commit 1fb26d18c4
2 changed files with 12 additions and 20 deletions

View File

@ -7664,7 +7664,7 @@ bool ImGui::TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open,
hovered |= (g.HoveredId == id);
// Allow the close button to overlap unless we are dragging (in which case we don't want any overlapping tabs to be hovered)
if (!held)
if (g.ActiveId != id)
SetItemAllowOverlap();
// Drag and drop: re-order tabs