summaryrefslogtreecommitdiff
path: root/indra/llui/llscrolllistcell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llui/llscrolllistcell.cpp')
-rw-r--r--indra/llui/llscrolllistcell.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/llui/llscrolllistcell.cpp b/indra/llui/llscrolllistcell.cpp
index e28da91305..a7c268758a 100644
--- a/indra/llui/llscrolllistcell.cpp
+++ b/indra/llui/llscrolllistcell.cpp
@@ -204,6 +204,13 @@ BOOL LLScrollListText::isText() const
return TRUE;
}
+BOOL LLScrollListText::needsToolTip() const
+{
+ // show tooltips for truncated text
+ return mFont->getWidth(mText.getString()) > getWidth();
+}
+
+
//virtual
BOOL LLScrollListText::getVisible() const
{