mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-04 07:01:04 +01:00 
			
		
		
		
	Tables: do not show empty tooltip when user submits TableHeader with no label to display. (#6342)
This commit is contained in:
		@@ -42,6 +42,8 @@ Breaking changes:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
Other changes:
 | 
					Other changes:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Tables: Fixed a small miscalculation in TableHeader() leading to an empty tooltip
 | 
				
			||||||
 | 
					  showing when a sorting column has no visible name. (#6342) [@lukaasm]
 | 
				
			||||||
- Backends: Clear bits sets io.BackendFlags on backend Shutdown(). (#6334, #6335] [@GereonV]
 | 
					- Backends: Clear bits sets io.BackendFlags on backend Shutdown(). (#6334, #6335] [@GereonV]
 | 
				
			||||||
  Potentially this would facilitate switching runtime backend mid-session.
 | 
					  Potentially this would facilitate switching runtime backend mid-session.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3007,7 +3007,7 @@ void ImGui::TableHeader(const char* label)
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Sort order arrow
 | 
					    // Sort order arrow
 | 
				
			||||||
    const float ellipsis_max = cell_r.Max.x - w_arrow - w_sort_text;
 | 
					    const float ellipsis_max = ImMax(cell_r.Max.x - w_arrow - w_sort_text, label_pos.x);
 | 
				
			||||||
    if ((table->Flags & ImGuiTableFlags_Sortable) && !(column->Flags & ImGuiTableColumnFlags_NoSort))
 | 
					    if ((table->Flags & ImGuiTableFlags_Sortable) && !(column->Flags & ImGuiTableColumnFlags_NoSort))
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        if (column->SortOrder != -1)
 | 
					        if (column->SortOrder != -1)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user