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:
parent
0c9ab0acdd
commit
a70c6aae9f
2 changed files with 32 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue