mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 05:01:05 +01:00 
			
		
		
		
	TextWrapped, PushTextWrapPos(0.0f) within a window with horizontal scrolling from not covering the full horizontal area (previously only worked with an explicit contents size).
This commit is contained in:
		| @@ -2997,7 +2997,7 @@ float ImGui::CalcWrapWidthForPos(const ImVec2& pos, float wrap_pos_x) | ||||
|  | ||||
|     ImGuiWindow* window = GImGui->CurrentWindow; | ||||
|     if (wrap_pos_x == 0.0f) | ||||
|         wrap_pos_x = GetContentRegionMaxAbs().x; | ||||
|         wrap_pos_x = window->WorkRect.Max.x; | ||||
|     else if (wrap_pos_x > 0.0f) | ||||
|         wrap_pos_x += window->Pos.x - window->Scroll.x; // wrap_pos_x is provided is window local space | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user