mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 13:11:05 +01:00 
			
		
		
		
	DragFloat: Mention usage of FLT_MAX, INT_MAX etc. explicitly. (#2931)
This commit is contained in:
		| @@ -2201,10 +2201,10 @@ static void ShowDemoWindowLayout() | ||||
|         ImGui::SameLine(140); enable_track |= ImGui::DragInt("##item", &track_item, 0.25f, 0, 99, "Item = %d"); | ||||
|  | ||||
|         bool scroll_to_off = ImGui::Button("Scroll Offset"); | ||||
|         ImGui::SameLine(140); scroll_to_off |= ImGui::DragFloat("##off", &scroll_to_off_px, 1.00f, 0, 9999, "+%.0f px"); | ||||
|         ImGui::SameLine(140); scroll_to_off |= ImGui::DragFloat("##off", &scroll_to_off_px, 1.00f, 0, FLT_MAX, "+%.0f px"); | ||||
|  | ||||
|         bool scroll_to_pos = ImGui::Button("Scroll To Pos"); | ||||
|         ImGui::SameLine(140); scroll_to_pos |= ImGui::DragFloat("##pos", &scroll_to_pos_px, 1.00f, -10, 9999, "X/Y = %.0f px"); | ||||
|         ImGui::SameLine(140); scroll_to_pos |= ImGui::DragFloat("##pos", &scroll_to_pos_px, 1.00f, -10, FLT_MAX, "X/Y = %.0f px"); | ||||
|         ImGui::PopItemWidth(); | ||||
|  | ||||
|         if (scroll_to_off || scroll_to_pos) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user