Timer name does not always fit within circle

Issue #31 resolved
Mike R created an issue

Apologies for the lack of a screenshot but it’s easily replicable by creating a simple timer with a large-ish no of characters.
It would appear that the text attempts to be centred, but there is no max-width for title. A max ‘left’ value, however, is set which is equivalent to the edge of the circle, so once the length of text = d, the excess text continues to flow out the other side of the circle.

I’d say there are two issues here:
[1] deciding how to deal with long titles: [a] a char max for the user-defined name (based on the em value of the font), or [b] allowing long titles but then either truncating the text, ellipsifying the text, decreasing the font-size, or moving text to a second line (these last two would probably create more problems than they solve though).
[2] The left-most limit is currently in line with the left-most part of the circle when really it should be less than that since the text is not running along the diameter of the circle (plus the stroke width limits things a bit too)

Comments (1)

  1. Log in to comment