mirror of
				https://github.com/ocornut/imgui.git
				synced 2025-10-26 12:27:30 +00:00 
			
		
		
		
	ColorButton: Push a text baseline offset if higher than g.FontSize. (#346)
This commit is contained in:
		| @@ -9069,7 +9069,7 @@ bool ImGui::ColorButton(const char* desc_id, const ImVec4& col, ImGuiColorEditFl | |||||||
|     if (size.y == 0.0f) |     if (size.y == 0.0f) | ||||||
|         size.y = default_size; |         size.y = default_size; | ||||||
|     const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size); |     const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size); | ||||||
|     ItemSize(bb); |     ItemSize(bb, ImMin((size.y - g.FontSize) * 0.5f, style.FramePadding.y)); | ||||||
|     if (!ItemAdd(bb, &id)) |     if (!ItemAdd(bb, &id)) | ||||||
|         return false; |         return false; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 omar
					omar