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

Correct item alignment solution #897

Open
luckyycode opened this issue Nov 6, 2016 · 1 comment
Open

Correct item alignment solution #897

luckyycode opened this issue Nov 6, 2016 · 1 comment

Comments

@luckyycode
Copy link

luckyycode commented Nov 6, 2016

I couldn't find a method which could transform an object (text, image, button whatever) to center/right.
I know that I can do that manually, but which way would you recommend to align an object for example, to the right side (I do 'GetContentRegionAvailWidth() - ', but this solution is not that good if I want to make all placements correct).

@luckyycode luckyycode changed the title Align item Correct item alignment solution Nov 6, 2016
@ocornut
Copy link
Owner

ocornut commented Nov 12, 2016

There's no such thing available library-wide. It might be part of a batch of future layout improvement but I can't see them happening soon at the current development speed.

The stack-layout of PR #846 may provide decent alternative in some situations.

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