Skip to content

Conflicting ID in ImGui Demo #8723

@binaryfox0

Description

@binaryfox0

Version/Branch of Dear ImGui:

Version 1.92.0, Branch: Master

Back-ends:

imgui_impl_sdl2.cpp + imgui_impl_sdlrenderer2.cpp

Compiler, OS:

Arch Linux + Clang

Full config/build information:

Dear ImGui 1.92.0 WIP (19198)
--------------------------------
sizeof(size_t): 8, sizeof(ImDrawIdx): 2, sizeof(ImDrawVert): 20
define: __cplusplus=201703
define: __linux__
define: __GNUC__=4
define: __clang_version__=20.1.6 
--------------------------------
io.BackendPlatformName: imgui_impl_sdl2 (2.32.56, 2.32.56)
io.BackendRendererName: imgui_impl_sdlrenderer2
io.ConfigFlags: 0x00000003
 NavEnableKeyboard
 NavEnableGamepad
io.ConfigNavCaptureKeyboard
io.ConfigInputTextCursorBlink
io.ConfigWindowsResizeFromEdges
io.ConfigMemoryCompactTimer = 60.0
io.BackendFlags: 0x0000001E
 HasMouseCursors
 HasSetMousePos
 RendererHasVtxOffset
 RendererHasTextures
--------------------------------
io.Fonts: 1 fonts, Flags: 0x00000000, TexSize: 512,128
io.Fonts->FontLoaderName: "stb_truetype"
io.DisplaySize: 1280.00,696.00
io.DisplayFramebufferScale: 1.00,1.00
--------------------------------
style.WindowPadding: 8.00,8.00
style.WindowBorderSize: 1.00
style.FramePadding: 4.00,3.00
style.FrameRounding: 0.00
style.FrameBorderSize: 0.00
style.ItemSpacing: 8.00,4.00
style.ItemInnerSpacing: 4.00,4.00

Details:

My Issue/Question:
Your ImGui Demo widget have conflicting ID issues, more specifically at Layout & Scrolling->Widgets Width->SetNextItemWidth/PushItemWidth(-GetContentReigonAvail().x*0.5f && -Min(GetContentReigonAvail().x * 0.4f, GetFontSize() * 12)

Screenshots/Video:

Image
Image

Minimal, Complete and Verifiable Example code:

In your code, not mine. :))))

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions