Open arnaud-neny opened 6 months ago
The label width (and item spacing between the combo and the label) gets added to the item's total width, which then keeps pushing the window's content size.
Disable the label to prevent the window from growing forever:
ImGui::Combo("##unique_id_here", ...);
(You can read more about the ##
syntax here: https://github.com/ocornut/imgui/blob/master/docs/FAQ.md#q-how-can-i-have-widgets-with-an-empty-label)
Version/Branch of Dear ImGui:
Version 1.90.4, Branch: docking
Back-ends:
imgui_impl_d3d9.cpp + imgui_impl_win32.cpp
Compiler, OS:
Windows 10 + MSVC 2022
Full config/build information:
Using imgui_demo.c, ShowExampleAppAutoResize
Details:
Adding the code from the example is making the window grows indefinitively.
Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code: