We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImGui : 1.74 Branch : Master
the ImGuiColorEditFlags_NoInputs applied in ColorEdit3 or ColorEdit4 keep the space (used by inputs)
the first line is without ImGuiColorEditFlags_NoInputs the second line is with ImGuiColorEditFlags_NoInputs
i have fixed this problem like that (at line 4348 of imgui_widgets.cpp (but not sure if it work in all cases, mines are ok)
if (label != label_display_end && !(flags & ImGuiColorEditFlags_NoLabel)) { window->DC.CursorPos = ImVec2(pos.x + w_full + style.ItemInnerSpacing.x, pos.y + style.FramePadding.y); TextEx(label, label_display_end); }
become :
if (label != label_display_end && !(flags & ImGuiColorEditFlags_NoLabel)) { float w = w_full; if (flags & ImGuiColorEditFlags_NoSmallPreview) w -= w_button; if (flags & ImGuiColorEditFlags_NoInputs) w -= w_inputs; window->DC.CursorPos = ImVec2(pos.x + w + style.ItemInnerSpacing.x, pos.y + style.FramePadding.y); TextEx(label, label_display_end); }
the result :
The text was updated successfully, but these errors were encountered:
Fix text alignment of ColorEdit widgets with ImGuiColorEditFlags_NoIn…
cf9f8ec
…puts flag. Fixes ocornut#2955.
63cc5f6
ColorEdit: Fix label alignment when using ImGuiColorEditFlags_NoInput…
e254167
…s. (#2955)
Fixed with correct inner spacing by e254167.
Sorry, something went wrong.
No branches or pull requests
ImGui : 1.74
Branch : Master
the ImGuiColorEditFlags_NoInputs applied in ColorEdit3 or ColorEdit4
keep the space (used by inputs)
the first line is without ImGuiColorEditFlags_NoInputs
the second line is with ImGuiColorEditFlags_NoInputs
i have fixed this problem like that (at line 4348 of imgui_widgets.cpp
(but not sure if it work in all cases, mines are ok)
become :
the result :
The text was updated successfully, but these errors were encountered: