-
Notifications
You must be signed in to change notification settings - Fork 226
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
Layout of popups broken #2687
Comments
I will take an look on it. |
I dont know ho to set the messange higher. |
The issue is that vertical text alignment is hardcoded to be centered here: https://github.com/fifengine/fifechan/blob/master/src/widgets/label.cpp#L134 int textY = offsetRec.y + getPaddingTop() + (getHeight() - offsetRec.height - getPaddingTop() - getPaddingBottom() - getFont()->getHeight()) / 2; |
See this issue to get the required functionality: fifengine/fifechan#52 |
Just add background_color to a widget to see how big it really is, there labels were way too high and wide, which is why the text alignment looked especially off. Refs: #2687
@LinuxDonald I fixed the size of the message labels, so the text centering is now at least consistent and doesn't look off. I'm gonna mark this issue as nice-to-have. |
Nice fix for now :-) now we will wait what with the fifechan ticket will happen. |
I've had at least two instances of
Popup
that looked like this. The title should be moved down, the message up.The text was updated successfully, but these errors were encountered: