ome / omero-figure

An OMERO.web app for creating Figures from images in OMERO
http://figure.openmicroscopy.org
GNU Affero General Public License v3.0
15 stars 31 forks source link

Bug: Scale bar inside top/bottom right is is partially outside image #156

Open kennethgillen opened 8 years ago

kennethgillen commented 8 years ago

Hi,

Using figure 1.2.1 in OMERO 5.2.3:

When adding a scalebar to be 'inside' top-right, or bottom-right, and changing the font size, the scalebar moves outside the image.

The scalebar should move towards the centre of the image when it's increased in size, rather than it being clipped and leaving the image.

Perhaps a separate issue, but it seems once I've chosen to place the scalebar inside the image, not outside the image, it's no longer possible to place it outside again. The only choices are which corner.

screenshot 2016-05-25 18 55 43

will-moore commented 8 years ago

I think the main problem here was that there's no pixel size set, so the scalebar has zero length. If the scalebar is longer, it will appear inside the image with the label centred above it. Then it's just a case of making the font small enough for the scalebar since we don't handle overlap very well (see below). I guess this could be improved but it's kinda edge case so not such a big priority.

screen shot 2016-05-26 at 13 44 11