From 241b153aaf8ed596eeec9ed7d47aa6149b9acd2f Mon Sep 17 00:00:00 2001 From: Inusaito Sayori Date: Mon, 19 Aug 2013 22:59:57 -0400 Subject: [PATCH] Restore Legacy Behavior: Display tooltips on scrolllisttext cells as long as there's text there, not just if that text is truncated --- indra/llui/llscrolllistcell.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/indra/llui/llscrolllistcell.cpp b/indra/llui/llscrolllistcell.cpp index 6ac851ede..8ebf6bc04 100644 --- a/indra/llui/llscrolllistcell.cpp +++ b/indra/llui/llscrolllistcell.cpp @@ -238,8 +238,11 @@ BOOL LLScrollListText::needsToolTip() const if (LLScrollListCell::needsToolTip()) return LLScrollListCell::needsToolTip(); + /* Singu Note: To maintain legacy behavior, show tooltips for any text // ...otherwise, show tooltips for truncated text return mFont->getWidth(mText.getString()) > getWidth(); + */ + return !mText.empty(); } //virtual