[Mac] Rectangle of Shape is not filled if y < 0 [message #1873394] |
Fri, 13 December 2024 08:06  |
Eclipse User |
|
|
|
Hi,
On MacOS, a Shape is not colored inside if its y is < 0.
The source of this problem is the implementation of GC#fillGradientRectangle in SWT for Mac, which only colors for y > 0.
I created an issue on the SWT GitHub yesterday, you can see a screenshot of the bug in Graphiti :
https://github.com/eclipse-platform/eclipse.platform.swt/issues/1652
Il submitted a pull request on SWT, but it doesn't seem to want to be accepted by the reviewer, because it causes a regression in Eclipse...
Do you think there is a way to work around this bug in Graphiti?
Thank you in advance !
---
Christophe
|
|
|
|
Re: [Mac] Rectangle of Shape is not filled if y < 0 [message #1873456 is a reply to message #1873420] |
Fri, 20 December 2024 08:50  |
Eclipse User |
|
|
|
I had a closer look at this, but because this functionality is used by Graphiti "under the hood" (not directly called but from GEF, SWT...) the only idea for a workaround would be to somehow transform the diagram coordinates so that y-coordinates never get negative. But that would be a bigger thing and not really suitable as workaround...
In case you have another idea, feel free to reach out again here.
- Michael
|
|
|
Powered by
FUDForum. Page generated in 0.04378 seconds