Tables: Further fix #3293, #3163 + fixed for row unfreezing border not always showing due to unset clip rect.

This commit is contained in:
omar
2020-06-13 17:27:51 +02:00
committed by ocornut
parent b741639468
commit 363eae94e6
4 changed files with 24 additions and 31 deletions

View File

@ -1992,6 +1992,7 @@ struct ImGuiTable
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 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
ImGuiWindow* InnerWindow; // Window holding the table data (== OuterWindow or a child window)