1px gap?

Started by Alberto, January 03, 2024, 20:04:41 PM

Previous topic - Next topic

Alberto

OCD is at full tilt today, and I cannot stop staring at this 1px gap between default object size 120 x 60 and the default grid of 12, so I'm 2mins away from changing default objects size.

Is this me, or is it like this by design?

Phil Beauvoir

#1
Hmm, that's messing with my OCD as well. I played around a bit to see if it has anything to do with hi-res screen resolutions but no. Also it's the same in earlier versions of Archi as well so not something that we've broken. It might be a bug in the underlying Eclipse framework (GEF). Needs more investigation...

Edit: actually it's due to a problem in the way the Eclipse framework (GEF) works, we have to reduce the width and height of the figure by one pixel so that the border outline is not clipped.
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

Alberto

I couldn't handle it... I changed the default size  :'(

Alberto

#3
So it looks like the problem in the GEF has been addressed and we've gone the other direction now? This is on v5.4.2

I can't add an image to the post so here's a link to imgur instead
https://imgur.com/a/QBtbl2P

Phil Beauvoir

> So it looks like the problem in the GEF has been addressed and we've gone the other direction now?

There was a change in the Eclipse SWT library. This is a compromise because pixel position calculation is integer and not floating point.
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.