Fix info icon position in chat history when using chat headers
parent
5f309fdcf7
commit
decc07da57
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue