mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-30 20:51:06 +01:00 
			
		
		
		
	Tables: fixed GetContentRegionAvail().y report not taking account of lower cell padding or of using ImGuiTableFlags_NoHostExtendY. (#6619)
Made GetContentRegionMax() fully defer to WorkRect when inside a table container.
This commit is contained in:
		| @@ -9774,9 +9774,7 @@ ImVec2 ImGui::GetContentRegionMax() | ||||
| { | ||||
|     ImGuiContext& g = *GImGui; | ||||
|     ImGuiWindow* window = g.CurrentWindow; | ||||
|     ImVec2 mx = window->ContentRegionRect.Max; | ||||
|     if (window->DC.CurrentColumns || g.CurrentTable) | ||||
|         mx.x = window->WorkRect.Max.x; | ||||
|     ImVec2 mx = (window->DC.CurrentColumns || g.CurrentTable) ? window->WorkRect.Max : window->ContentRegionRect.Max; | ||||
|     return mx - window->Pos; | ||||
| } | ||||
|  | ||||
| @@ -9785,9 +9783,7 @@ ImVec2 ImGui::GetContentRegionMaxAbs() | ||||
| { | ||||
|     ImGuiContext& g = *GImGui; | ||||
|     ImGuiWindow* window = g.CurrentWindow; | ||||
|     ImVec2 mx = window->ContentRegionRect.Max; | ||||
|     if (window->DC.CurrentColumns || g.CurrentTable) | ||||
|         mx.x = window->WorkRect.Max.x; | ||||
|     ImVec2 mx = (window->DC.CurrentColumns || g.CurrentTable) ? window->WorkRect.Max : window->ContentRegionRect.Max; | ||||
|     return mx; | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user