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

Allow specifying vertical alignment of text in label widgets #52

Open
squiddy opened this issue May 22, 2017 · 1 comment
Open

Allow specifying vertical alignment of text in label widgets #52

squiddy opened this issue May 22, 2017 · 1 comment

Comments

@squiddy
Copy link

squiddy commented May 22, 2017

Current behaviour

As you can see, currently text is always vertically centered. This is hardcoded here: https://github.com/fifengine/fifechan/blob/master/src/widgets/label.cpp#L134

2017-05-22-075619_1314x827_scrot

What I want

Be able to specify the vertical alignment, similar to what is possible with horizontal alignment right now.

setAlignment(top);
setAlignment(center);
setAlignment(bottom);
@helios2000
Copy link
Member

Ok, but then we need 9 instead of 3 alignments.
Left, Center, Right and the new ones Top, Bottom, TopLeft, TopRight, BottomLeft, BottomRight.
Or what do you have in mind?

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

No branches or pull requests

2 participants