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

[processing] Fixed UI bug with invalid button width. #2945

Merged
merged 1 commit into from Mar 29, 2016

Conversation

sept-en
Copy link
Contributor

@sept-en sept-en commented Mar 24, 2016

Hello!

I just found small uI glitch with button (the width is too small to display text correctly).
Some screens (before and after attached).

Best regards,
Kirill Abramov.

qgis_modeler_bug
qgis_modeler_bug_fix

@NathanW2
Copy link
Member

What does it look like if you remove the max size? This will still
overflow with different font sizes.

On Fri, Mar 25, 2016 at 8:56 AM, Kirill notifications@github.com wrote:

Hello!

I just found small uI glitch with button (the width is too small to
display text correctly).
Some screens (before and after attached).

Best regards,
Kirill Abramov.

[image: qgis_modeler_bug]
https://cloud.githubusercontent.com/assets/7783792/14033595/a6ece134-f22c-11e5-9db6-61e6b21e329f.png
[image: qgis_modeler_bug_fix]

https://cloud.githubusercontent.com/assets/7783792/14033596/a708f0b8-f22c-11e5-8d3b-8b5e89b9c764.png

You can view, comment on, or merge this pull request online at:

#2945
Commit Summary

  • [processing]Fixed UI bug with invalid button width.

File Changes

Patch Links:


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#2945

@sept-en
Copy link
Contributor Author

sept-en commented Mar 25, 2016

@NathanW2 if we remove the max size, then the button will fill have the same width, as the parent component. It would be better for the big window size, but looks not so good if we reduce window's width.
So that's why I leaved setMaximumWidth() there, but just increased max width available for this.

Best regards,
Kirill Abramov.

@alexbruy
Copy link
Contributor

IMHO we shouldn't limit size of UI elements as this breaks layout and it still won't work with some themes/font setting. Better to drop maximum size limit and add spacer right to the button.

@sept-en
Copy link
Contributor Author

sept-en commented Mar 27, 2016

@alexbruy okay, I fixed it according your advices.

@alexbruy alexbruy merged commit 26df41f into qgis:master Mar 29, 2016
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.

None yet

3 participants