You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LabelText only resize its own height based on the label. If used with a value containing line breaks these will be clipped. (See 3rd row in the screenshot.
I would expect the sizing to be based on the biggest of the label and value texts
Screenshots/Video
Standalone, minimal, complete and verifiable example:
// Put this in any example programImGui::Begin("Multiline LabelText");
ImGui::Separator();
ImGui::LabelText("Single line label", "Single line text");
ImGui::Separator();
ImGui::LabelText("Multi\n line\n label", "Single line text");
ImGui::Separator();
ImGui::LabelText("Single line label", "Multi\n line\n text");
ImGui::Separator();
ImGui::LabelText("Single line label", "Single line text");
ImGui::Separator();
ImGui::End();
The text was updated successfully, but these errors were encountered:
Should be be fixed by c283a1d.
I also noticed from your picture that the second case is vertically centered with is inconsistent with other widgets so fixed that as well. Thank you!
Version/Branch of Dear ImGui:
Version: 1.8.3
Branch: master
Commit: 00d570e
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_glfw.cpp + imgui_impl_opengl3.cpp
Compiler: clang-1200.0.32.29
Operating System: macOS 11.2.3
My Issue/Question:
LabelText
only resize its own height based on the label. If used with a value containing line breaks these will be clipped. (See 3rd row in the screenshot.I would expect the sizing to be based on the biggest of the label and value texts
Screenshots/Video
Standalone, minimal, complete and verifiable example:
The text was updated successfully, but these errors were encountered: