Notification: truncate long lines
This happens only if the word-wrapping couldn't fit them (because there is a very long word in the text) Fixes #11494.
This commit is contained in:
parent
967a06e055
commit
63a4690e72
|
@ -277,6 +277,10 @@ NotificationView::Draw(BRect updateRect)
|
|||
LineInfo *l = (*lIt);
|
||||
|
||||
SetFont(&l->font);
|
||||
// Truncate the string. We have already line-wrapped the text but if
|
||||
// there is a very long 'word' we can only truncate it.
|
||||
TruncateString(&(l->text), B_TRUNCATE_END,
|
||||
Bounds().Width() - l->location.x - 8);
|
||||
DrawString(l->text.String(), l->text.Length(), l->location);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue