Tables: Fix settings not being saved in child window (issue 3367) + fix for change in master.

This commit is contained in:
omar
2020-08-05 19:26:54 +02:00
committed by ocornut
parent 9d8b40414a
commit eb18636e02
2 changed files with 13 additions and 4 deletions

View File

@ -2001,7 +2001,7 @@ struct ImGuiTable
ImRect InnerClipRect;
ImRect BackgroundClipRect; // We use this to cpu-clip cell background color fill
ImRect HostClipRect; // This is used to check if we can eventually merge our columns draw calls into the current draw call of the current window.
ImRect HostWorkRect; // Backup of InnerWindow->WorkRect at the end of BeginTable()
ImRect HostBackupParentWorkRect; // Backup of InnerWindow->ParentWorkRect at the end of BeginTable()
ImRect HostBackupClipRect; // Backup of InnerWindow->ClipRect during PushTableBackground()/PopTableBackground()
ImVec2 HostCursorMaxPos; // Backup of InnerWindow->DC.CursorMaxPos at the end of BeginTable()
ImGuiWindow* OuterWindow; // Parent window for the table