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

Padding on last column #1138

Closed
itamago opened this issue May 8, 2017 · 2 comments
Closed

Padding on last column #1138

itamago opened this issue May 8, 2017 · 2 comments

Comments

@itamago
Copy link

itamago commented May 8, 2017

Hello,
When drawing columns, I see there is some padding on the last column (please take a look a the screenshot).
I obviously searched in the closed issues, but didn't find my answer.
I don't remember why, and I don't remember how to retrieve the remaining space...
Could someone please explain again ?
Thanks.
screen shot 2017-05-08 at 14 31 31

@ocornut
Copy link
Owner

ocornut commented May 8, 2017

This is because the code has some subtle issues with dynamically toggling the scrollbar on and off, so I always kept that space available in case the scrollbar would appear and it fixed a few things.

If you never need a scrollbar, you can pass the ImGuiWindowFlags_NoScrollbar flag to your child window and it'll fix that issue.

Otherwise we still need to find that resizing to be done properly as part of the Columns API rewrite (#125) sometimes in the future :)

@itamago
Copy link
Author

itamago commented May 8, 2017

Thanks, now I remember !
It works like a charm :)

@itamago itamago closed this as completed May 8, 2017
ocornut added a commit that referenced this issue Aug 20, 2017
…ar. Not 100% sure about that but it looks like we've fixed enough bugs that this may not cause troubles anymore. (#125, #913, #893, #1138)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants