Skip to content
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

fix: a horizontal group glues to previous line (#1999) #2002

Merged
merged 1 commit into from
Jan 7, 2023

Conversation

v-ein
Copy link
Contributor

@v-ein v-ein commented Jan 6, 2023


name: Pull Request
about: Create a pull request to help us improve
title: A horizontal group sticks to the previous line if the first child is hidden
assignees: @hoffstadt


Closes #1999

Description:
A group with horizontal=True now doesn't call ImGui::SameLine() after hidden children - those with config.show==false.

It doesn't make much sense to call ImGui::SameLine() twice in a row (if a child somewhere in the middle was hidden), and calling it after the first child (if it's hidden) can actually break things.

Concerning Areas:
None.

Copy link
Owner

@hoffstadt hoffstadt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really appreciate all the PRs. I will try to go through them all over the next day or 2!

@hoffstadt hoffstadt merged commit 61d6794 into hoffstadt:master Jan 7, 2023
@v-ein v-ein deleted the bugfix/1999-group-hidden-child branch June 23, 2023 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A horizontal group sticks to the previous line if the first child is hidden
2 participants