imgui icon indicating copy to clipboard operation
imgui copied to clipboard

Incorrect work WindowPadding/ItemSpacing in popups

Open DimaKoltun opened this issue 8 months ago • 0 comments

Version/Branch of Dear ImGui:

Version 1.89, Branch: docking

Back-ends:

imgui_impl_sdl.cpp + imgui_impl_opengl3.cpp

Compiler, OS:

Windows 10 + MSVC 2022

Full config/build information:

Dear ImGui 1.89 WIP (18823)
--------------------------------

sizeof(size_t): 8, sizeof(ImDrawIdx): 2, sizeof(ImDrawVert): 20
define: __cplusplus=199711
define: _WIN32
define: _WIN64
define: _MSC_VER=1939
define: _MSVC_LANG=201402
define: IMGUI_HAS_VIEWPORT
define: IMGUI_HAS_DOCK
--------------------------------

io.BackendPlatformName: imgui_impl_sdl
io.BackendRendererName: imgui_impl_opengl3
io.ConfigFlags: 0x00000441
 NavEnableKeyboard
 DockingEnable
 ViewportsEnable
io.ConfigViewportsNoDecoration
io.ConfigInputTextCursorBlink
io.ConfigWindowsResizeFromEdges
io.ConfigMemoryCompactTimer = 60.0
io.BackendFlags: 0x00001C0E
 HasMouseCursors
 HasSetMousePos
 PlatformHasViewports
 HasMouseHoveredViewport
 RendererHasVtxOffset
 RendererHasViewports
--------------------------------

io.Fonts: 1 fonts, Flags: 0x00000000, TexSize: 512,64
io.DisplaySize: 1280.00,720.00
io.DisplayFramebufferScale: 1.00,1.00
--------------------------------

style.WindowPadding: 8.00,10.00
style.WindowBorderSize: 1.00
style.FramePadding: 4.00,3.00
style.FrameRounding: 0.00
style.FrameBorderSize: 0.00
style.ItemSpacing: 8.00,20.00
style.ItemInnerSpacing: 4.00,4.00

Details:

My Issue/Question:

There are some padding problems in popups with large item spacing and window padding. I have ItemSpacing.y = 20.0f and WindowPadding.y = 10.0f, you can see on screenshot that windowpadding is way less than 10px

Screenshots/Video:

image

Minimal, Complete and Verifiable Example code:

No response

DimaKoltun avatar Jun 11 '24 12:06 DimaKoltun