-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
FramePadding Is Not Re-Aligned For Clipping When Altered #3731
Comments
For the second one, it is just that the word is hitting the edge of the window vs. being 1-pixel inset to the edge of the window. For reproducing this one:
Here the 'O' in Demo is hitting the very edge of the window where the 1-pixel frame is. If you turn on/off the window border, the font is not adjusted based on it being there. It just sits ontop of it. |
ocornut
added a commit
that referenced
this issue
Jan 26, 2021
…zero and there are no close button in the window. (#3731)
Both issues should be fixed by 6b32d0e |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version/Branch of Dear ImGui: 0ea4408 (Latest as of this post.)
Version: 1.80WIP
Branch: master
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_win32.cpp + imgui_impl_dx9.cpp (and my own for Direct3D8)
Compiler: Visual Studio 2019 16.8.4
Operating System: Windows 10
My Issue/Question:
When altering the global
FramePadding
value, the clip handling inside of ImGui does not account for the changes.This causes things like text to run past their expected clipping sections.
This is reproducible in the main branch code, as-is just by altering the
FramePadding
size.Next, in the
Dear ImGui Demo
window, go toWindow Options
and checkNo Close
.Now you can slowly resize the window until the title text clips past the window frame. This is easier to see with a magnifier. (Windows has one built-in if needed.)
Screenshots/Video
Standalone, minimal, complete and verifiable example: (see #2261)
See steps above to use the current examples to test this.
The text was updated successfully, but these errors were encountered: