eclipse / nebula

Nebula Project
https://eclipse.org/nebula
Eclipse Public License 2.0
84 stars 97 forks source link

Do not paint over the borders of the widget #603

Closed laeubi closed 2 weeks ago

laeubi commented 2 weeks ago

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.