On 12/11/2013 10:31 PM, Juliusz Gonera wrote:
However, it
might be better to wrap the title (language aside, it could
provide better usability for some scenarios, e.g. if you lock your phone
when editing, then come back to it and want to see what page you're on).
I'm not sure if I understand the example use case.
You open your browser back up and you want to see the full article name
you're editing.
Let's say we do it in JavaScript, we know the
browser window width, but we don't know how many
characters will fit in a single line... For those reasons I'd rather
stick with text-overflow: ellipsis in CSS.
I'm suggesting using the browser's normal wrapping algorithm (the same
one a normal paragraph or div uses), rather than truncating or splitting
the string based on an explicit calculation.
Matt Flaschen