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

Do not paint over the borders of the widget #603

Merged
merged 1 commit into from
Jun 29, 2024

Conversation

laeubi
Copy link
Contributor

@laeubi laeubi commented Jun 29, 2024

Currently RectangleGroupStrategy sets the clipping to the maximum area the control will need. But in case where the widget size is larger than the area to paint (for example inside a ScrolledComposite) this will result in painting over other widgets (at least on linux).

This now do two things:

  1. save the original clipping region and recover it afterwards
  2. intersect the calculated clipping region with the original to
    possibly shrink it to the are that is valid for repaint.

Currently RectangleGroupStrategy sets the clipping to the maximum area
the control will need. But in case where the widget size is larger than
the area to paint (for example inside a ScrolledComposite) this will
result in painting over other widgets (at least on linux).

This now do two things:

 1) save the original clipping region and recover it afterwards
 2) intersect the calculated clipping region with the original to
possibly shrink it to the are that is valid for repaint.
@laeubi laeubi merged commit 31f40e4 into EclipseNebula:master Jun 29, 2024
2 checks passed
@wimjongman
Copy link
Contributor

Did you push this without review? Please lets do the proper thing in the future.

@laeubi
Copy link
Contributor Author

laeubi commented Jul 19, 2024

@wimjongman I tried to find a suitable reviewer, but code is marked as "alpha" and no one seem to really work on this (I found some other things but I can workaround them), are you haveing any concerns in not painting over other widgets it seems totally wrong and produces some ugly artifacts at least on linux.

@wimjongman
Copy link
Contributor

The patch is great as usual, Christoph. Just add me or @lcaron in the future. We are mostly quick to review. The main goal is that way we are kept in the loop of changes.

@laeubi
Copy link
Contributor Author

laeubi commented Jul 19, 2024

Alright, I just don't wanted to bore you both with reviews so just let me know if it is too much and you think I should go on with something on my own :-D

@wimjongman
Copy link
Contributor

Alright, I just don't wanted to bore you both with reviews so just let me know if it is too much and you think I should go on with something on my own :-D

😂sure thing.

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