diff --git a/indra/newview/llbottomtray.cpp b/indra/newview/llbottomtray.cpp index 928e2bf7ef..5e90fbe631 100755 --- a/indra/newview/llbottomtray.cpp +++ b/indra/newview/llbottomtray.cpp @@ -604,6 +604,7 @@ BOOL LLBottomTray::postBuild() mListener.reset(new LLNearbyChatBarListener(*mNearbyChatBar)); mChatBarContainer = getChild("chat_bar_layout_panel"); + mChatbarWidth = mChatBarContainer->getRect().getWidth(); mNearbyCharResizeHandlePanel = getChild("chat_bar_resize_handle_panel"); mToolbarStack = getChild("toolbar_stack"); @@ -682,12 +683,15 @@ void LLBottomTray::onAutohideChatBarChanged() { if(gSavedSettings.getBOOL("AutohideChatBar")) { - mChatBarContainer->setVisible(FALSE); + mChatbarWidth = mChatBarContainer->getRect().getWidth(); + mChatBarContainer->reshape(30,mChatBarContainer->getRect().getHeight()); + //mChatBarContainer->setVisible(FALSE); mNearbyCharResizeHandlePanel->setVisible(FALSE); } else { - mChatBarContainer->setVisible(TRUE); + mChatBarContainer->reshape(mChatbarWidth,mChatBarContainer->getRect().getHeight()); + //mChatBarContainer->setVisible(TRUE); mNearbyCharResizeHandlePanel->setVisible(TRUE); } } diff --git a/indra/newview/llbottomtray.h b/indra/newview/llbottomtray.h index b076244c21..431aabde84 100644 --- a/indra/newview/llbottomtray.h +++ b/indra/newview/llbottomtray.h @@ -556,6 +556,7 @@ protected: LLBottomTrayLite* mPopupChatBar; LLButton* mAOToggleButton; // ## Zi: Animation Overrider bool mIsInLiteMode; + U32 mChatbarWidth; // Drag'n'Drop diff --git a/indra/newview/skins/default/xui/en/panel_nearby_chat_bar.xml b/indra/newview/skins/default/xui/en/panel_nearby_chat_bar.xml index fa8cb9563f..93d108c118 100644 --- a/indra/newview/skins/default/xui/en/panel_nearby_chat_bar.xml +++ b/indra/newview/skins/default/xui/en/panel_nearby_chat_bar.xml @@ -24,7 +24,7 @@ text_pad_right="25" tool_tip="Press Enter to say, Ctrl+Enter to shout" top="2" - width="283" /> + width="303" /> - diff --git a/indra/newview/skins/firestorm/xui/en/panel_bottomtray.xml b/indra/newview/skins/firestorm/xui/en/panel_bottomtray.xml index e80a0b62f6..a5ef2ae460 100644 --- a/indra/newview/skins/firestorm/xui/en/panel_bottomtray.xml +++ b/indra/newview/skins/firestorm/xui/en/panel_bottomtray.xml @@ -12,22 +12,7 @@ name="bottom_tray" top="28" width="1310"> - + @@ -38,40 +23,59 @@ name="VoiceControlBtnToolTip" value="Shows/hides voice control panel" /> - - + + - + + + + - + - - - - - - -