Fix info icon position in chat history when using chat headers

master
Ansariel 2020-08-20 00:50:29 +02:00
parent 5f309fdcf7
commit decc07da57
1 changed files with 7 additions and 0 deletions

View File

@ -996,6 +996,13 @@ protected:
{
const LLRect sticky_rect = mUserNameTextBox->getRect();
S32 icon_x = llmin(sticky_rect.mLeft + mUserNameTextBox->getTextBoundingRect().getWidth() + 7, sticky_rect.mRight - 3);
if (gSavedSettings.getBOOL("ShowChatMiniIcons"))
{
LLAvatarIconCtrl* icon = getChild<LLAvatarIconCtrl>("avatar_icon");
icon_x += icon->getRect().getWidth() + icon->getRect().mLeft;
}
mInfoCtrl->setOrigin(icon_x, sticky_rect.getCenterY() - mInfoCtrl->getRect().getHeight() / 2 ) ;
}
mInfoCtrl->setVisible(isVisible);