diff options
author | Loren Shih <seraph@lindenlab.com> | 2009-11-16 11:05:33 -0500 |
---|---|---|
committer | Loren Shih <seraph@lindenlab.com> | 2009-11-16 11:05:33 -0500 |
commit | 95cbf689f343ba4c0c352993273b5bb20812e36c (patch) | |
tree | dabc2ffc10bc027da8c60168e0190a0da98b5722 /indra/newview/llavatarlistitem.cpp | |
parent | 59eb2815bfea9b0a826e006090d0fef80ae1f6b8 (diff) | |
parent | 6f52f1e502cf030ceb4e14963fdda1021ea33023 (diff) |
merge
--HG--
branch : avatar-pipeline
Diffstat (limited to 'indra/newview/llavatarlistitem.cpp')
-rw-r--r-- | indra/newview/llavatarlistitem.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/indra/newview/llavatarlistitem.cpp b/indra/newview/llavatarlistitem.cpp index 7df278d887..c670a65bcc 100644 --- a/indra/newview/llavatarlistitem.cpp +++ b/indra/newview/llavatarlistitem.cpp @@ -311,3 +311,18 @@ void LLAvatarListItem::onNameCache(const std::string& first_name, const std::str mAvatarName->setValue(name); mAvatarName->setToolTip(name); } + +void LLAvatarListItem::reshapeAvatarName() +{ + S32 width_delta = 0; + width_delta += mShowProfileBtn ? mProfileBtnWidth : 0; + width_delta += mSpeakingIndicator->getVisible() ? mSpeakingIndicatorWidth : 0; + width_delta += mAvatarIcon->getVisible() ? mIconWidth : 0; + width_delta += mShowInfoBtn ? mInfoBtnWidth : 0; + width_delta += mLastInteractionTime->getVisible() ? mLastInteractionTime->getRect().getWidth() : 0; + + S32 height = mAvatarName->getRect().getHeight(); + S32 width = getRect().getWidth() - width_delta; + + mAvatarName->reshape(width, height); +} |