Skip to content

Add resize grips for child windows #8501

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aleksijuvani
Copy link

If a child window has both the ImGuiChildFlags_ResizeX and ImGuiChildFlags_ResizeY flags set, it should get a resize grip like a normal window, so that it can be resized in both directions at the same time.

The code that clamps the resizing of childs within their parents is moved to CalcResizePosSizeFromAnyCorner(), so that it also occurs when the child is resized from the grip. The only two call-sites to this function are in UpdateWindowManualResize(), that is when resizing from a grip and when resizing from a border.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants