Преглед изворни кода

Tables: Angled headers: fixed borders not moving back up after TableAngleHeadersRow stops being called. (#7416)

cfillion пре 1 година
родитељ
комит
29ff159f94
2 измењених фајлова са 3 додато и 0 уклоњено
  1. 2 0
      docs/CHANGELOG.txt
  2. 1 0
      imgui_tables.cpp

+ 2 - 0
docs/CHANGELOG.txt

@@ -57,6 +57,8 @@ Other changes:
 - Windows: Double-click to collapse may be disabled via key-ownership mechanism. (#7369)
 - Tables: Angled headers: fixed border hit box extending beyond when used within
   non-scrollable tables. (#7416) [@cfillion]
+- Tables: Angled headers: fixed borders not moving back up after TableAngleHeadersRow()
+  stops being called. (#7416) [@cfillion]
 - Menus, Popups: Fixed an issue where sibling menu popups re-opening in successive
   frames would erroneously close the window. While it is technically a popup issue
   it would generally manifest when fast moving the mouse bottom to top in a sub-menu.

+ 1 - 0
imgui_tables.cpp

@@ -498,6 +498,7 @@ bool    ImGui::BeginTableEx(const char* name, ImGuiID id, int columns_count, ImG
     table->DeclColumnsCount = table->AngledHeadersCount = 0;
     if (previous_frame_active + 1 < g.FrameCount)
         table->IsActiveIdInTable = false;
+    table->AngledHeadersHeight = 0.0f;
     temp_data->AngledHeadersExtraWidth = 0.0f;
 
     // Using opaque colors facilitate overlapping lines of the grid, otherwise we'd need to improve TableDrawBorders()