1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-11 00:04:24 +00:00

Tables: demo synced tables + fix resizing indented synced tables.

This commit is contained in:
ocornut 2020-11-20 19:11:33 +01:00
parent 0c9ab0acdd
commit a70c6aae9f
2 changed files with 32 additions and 4 deletions

View file

@ -1122,7 +1122,7 @@ void ImGui::EndTable()
}
// Apply resizing/dragging at the end of the frame
if (table->ResizedColumn != -1)
if (table->ResizedColumn != -1 && table->InstanceCurrent == table->InstanceInteracted)
{
ImGuiTableColumn* column = &table->Columns[table->ResizedColumn];
const float new_x2 = (g.IO.MousePos.x - g.ActiveIdClickOffset.x + TABLE_RESIZE_SEPARATOR_HALF_THICKNESS);