summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterimcontainer.cpp
diff options
context:
space:
mode:
authormaksymsproductengine <maksymsproductengine@lindenlab.com>2013-02-19 23:34:34 +0200
committermaksymsproductengine <maksymsproductengine@lindenlab.com>2013-02-19 23:34:34 +0200
commitbecf7f8b605dfde99045e48274cb4cb3107443f5 (patch)
tree455631751f1756f3d501234204bec98b21254737 /indra/newview/llfloaterimcontainer.cpp
parent50d50019d8b8350bc7b04b0b49c6107cde62f4b0 (diff)
CHUI-729 FIXED Messages pane displays incorrect after changing size and relogin
Diffstat (limited to 'indra/newview/llfloaterimcontainer.cpp')
-rw-r--r--indra/newview/llfloaterimcontainer.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/indra/newview/llfloaterimcontainer.cpp b/indra/newview/llfloaterimcontainer.cpp
index 86d205a920..5213413aea 100644
--- a/indra/newview/llfloaterimcontainer.cpp
+++ b/indra/newview/llfloaterimcontainer.cpp
@@ -230,12 +230,10 @@ BOOL LLFloaterIMContainer::postBuild()
mMicroChangedSignal = LLVoiceClient::getInstance()->MicroChangedCallback(boost::bind(&LLFloaterIMContainer::updateSpeakBtnState, this));
if (! mMessagesPane->isCollapsed())
{
- S32 list_width = gSavedPerAccountSettings.getS32("ConversationsListPaneWidth");
- LLRect list_size = mConversationsPane->getRect();
- S32 left_pad = mConversationsListPanel->getRect().mLeft;
- list_size.mRight = list_size.mLeft + list_width - left_pad;
-
- mConversationsPane->handleReshape(list_size, TRUE);
+ S32 conversations_panel_width = gSavedPerAccountSettings.getS32("ConversationsListPaneWidth");
+ LLRect conversations_panel_rect = mConversationsPane->getRect();
+ conversations_panel_rect.mRight = conversations_panel_rect.mLeft + conversations_panel_width;
+ mConversationsPane->handleReshape(conversations_panel_rect, TRUE);
}
// Init the sort order now that the root had been created