mirror of
https://github.com/ocornut/imgui.git
synced 2026-05-29 21:35:32 +08:00
Tables: Angled Headers: angled section for column being reordered via the regular headers stay highlighted during reordering.
Easily possible thanks to 6603cde.
This commit is contained in:
@@ -95,6 +95,8 @@ Other Changes:
|
|||||||
- Tables:
|
- Tables:
|
||||||
- Fixed dragging a header to reorder outside of visible bounds (due to horizontal scrolling)
|
- Fixed dragging a header to reorder outside of visible bounds (due to horizontal scrolling)
|
||||||
from losing active id.
|
from losing active id.
|
||||||
|
- Angled Headers: angled section for column being reordered via the regular headers
|
||||||
|
stays highlighted during reordering.
|
||||||
- Style:
|
- Style:
|
||||||
- Border sizes are now scaled (and rounded) by ScaleAllSizes().
|
- Border sizes are now scaled (and rounded) by ScaleAllSizes().
|
||||||
- When using large values with ScallAllSizes(), the following items thickness
|
- When using large values with ScallAllSizes(), the following items thickness
|
||||||
|
|||||||
+1
-1
@@ -3308,7 +3308,7 @@ void ImGui::TableAngledHeadersRow()
|
|||||||
// Which column needs highlight?
|
// Which column needs highlight?
|
||||||
const ImGuiID row_id = GetID("##AngledHeaders");
|
const ImGuiID row_id = GetID("##AngledHeaders");
|
||||||
ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent);
|
ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent);
|
||||||
int highlight_column_n = table->HighlightColumnHeader;
|
int highlight_column_n = (table->LastHeldHeaderColumn != -1) ? table->LastHeldHeaderColumn : table->HighlightColumnHeader;
|
||||||
if (highlight_column_n == -1 && table->HoveredColumnBody != -1)
|
if (highlight_column_n == -1 && table->HoveredColumnBody != -1)
|
||||||
if (table_instance->HoveredRowLast == 0 && table->HoveredColumnBorder == -1 && (g.ActiveId == 0 || g.ActiveId == row_id || (table->IsActiveIdInTable || g.DragDropActive)))
|
if (table_instance->HoveredRowLast == 0 && table->HoveredColumnBorder == -1 && (g.ActiveId == 0 || g.ActiveId == row_id || (table->IsActiveIdInTable || g.DragDropActive)))
|
||||||
highlight_column_n = table->HoveredColumnBody;
|
highlight_column_n = table->HoveredColumnBody;
|
||||||
|
|||||||
Reference in New Issue
Block a user