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

Correctly report the required size to paint the PGroup control #627

Merged
merged 1 commit into from
Jan 5, 2025

Conversation

laeubi
Copy link
Contributor

@laeubi laeubi commented Dec 25, 2024

Currently if the the content of the PGroup is smaller than the title area width the text is cropped and possibly not readable because the PGroup does not report the title area with as it preferred width.

This now changes the computation so that the hints are passed to the render and then it could report the desired size.

The problem can be seen with the PGroupSnippet1.java already here it is how it is shown before (under Linux):

pgroup_before

As one can see, even though there is enough space left, the title is abbreviated and hardly readable.

After this change it looks like this:

pgroup_after

Currently if the the content of the PGroup is smaller than the title
area width the text is cropped and possibly not readable because the
PGroup does not report the title area with as it preferred width.

This now changes the computation so that the hints are passed to the
render and then it could report the desired size.
@laeubi laeubi force-pushed the pgroup_wrong_size branch from 36b4ba8 to 42e943d Compare January 1, 2025 09:19
@laeubi laeubi requested review from wimjongman and lcaron January 4, 2025 07:27
Copy link
Contributor

@lcaron lcaron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job, congrats !

@lcaron lcaron merged commit 0205f2d into EclipseNebula:master Jan 5, 2025
5 checks passed
@lcaron
Copy link
Contributor

lcaron commented Jan 5, 2025

Thank you @laeubi for your contribution 👍

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.

2 participants