imgui icon indicating copy to clipboard operation
imgui copied to clipboard

LabelText can't auto set item size

Open ChinaGuCheng opened this issue 1 year ago • 0 comments

Version/Branch of Dear ImGui:

Version 1.90.5

Back-ends:

imgui_impl_dx11.cpp + imgui_impl_win32.cpp

Compiler, OS:

Windows 10 + VS2019

Full config/build information:

No response

Details:

LabelText can't auto set item size, but Text or Button in normal

Screenshots/Video:

xiezuo20240619-161500

Minimal, Complete and Verifiable Example code:

        ImGui::Begin("One");
        ImGui::Text("1234567890-1234567890-1234567890-1234567890");
        ImGui::Text("1234567890-1234567890-1234567890-1234567890");
        ImGui::End();

        ImGui::Begin("Two");
        ImGui::LabelText("Label", "1234567890-1234567890-1234567890-1234567890");
        ImGui::LabelText("Label", "1234567890-1234567890-1234567890-1234567890");
        ImGui::End();

ChinaGuCheng avatar Jun 19 '24 09:06 ChinaGuCheng