diff options
Diffstat (limited to 'indra/llui/llscrolllistcell.cpp')
-rw-r--r-- | indra/llui/llscrolllistcell.cpp | 7 |
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 { |