-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When ImGuiChildFlags_AlwaysUseWindowPadding is enabled, the left and right padding widths of the Child are different, but the Parent window is the same #7540
Comments
The inner clipping rectangle of all windows (child or not) is always larger than the padding (by half). The actual padding is the same on the left and right sides, which you can observe by setting
Lines 6824 to 6836 in a60387a
|
Thanks for @cfillion answer, now I realize that it is always larger than the padding (by half). It was a visual misunderstanding. |
Linking to #3312 as I've been considering changing this and make the clip rect fill entire inner rect. I'll post here too if this changes. |
Version/Branch of Dear ImGui:
Version 1.90.6 WIP, Branch: docking (master/docking/etc.)
Back-ends:
imgui_impl_Win32.cpp + imgui_impl_DX11.cpp
Compiler, OS:
Win11 + MSVC 2022
Full config/build information:
Details:
My Issue/Question:
When [ImGuiChildFlags_AlwaysUseWindowPadding] is enabled, the left and right padding widths of the Child are different, but the Parent window is the same
Screenshots/Video:
Minimal, Complete and Verifiable Example code:
The text was updated successfully, but these errors were encountered: