diff options
author | Vadim ProductEngine <vsavchuk@productengine.com> | 2011-08-30 14:20:12 +0300 |
---|---|---|
committer | Vadim ProductEngine <vsavchuk@productengine.com> | 2011-08-30 14:20:12 +0300 |
commit | ebb213e040502e0edabb754c5e6df479e858b0d1 (patch) | |
tree | 2d79f78dfa2c2c6d0a606c325ccb253d41f02a0b /indra/newview | |
parent | 46ad5f8fb398ccb2ff5959ca645d6a50e2f1ad54 (diff) |
STORM-1028 WIP Fixed chat bar occupying all available space on first login.
1. Make sure we initialize desired chat bar width before using it.
2. Don't attempt shrinking chat bar by negative amount of pixels
(i.e. effectively extending it). This change may be irrelevant
to the bug I'm fixing, but won't hurt anyway.
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llbottomtray.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llbottomtray.cpp b/indra/newview/llbottomtray.cpp index afb477c736..c8cfe5b51e 100644 --- a/indra/newview/llbottomtray.cpp +++ b/indra/newview/llbottomtray.cpp @@ -201,7 +201,8 @@ public: }; LLBottomTray::LLBottomTray(const LLSD&) -: mChicletPanel(NULL), +: mDesiredNearbyChatWidth(0), + mChicletPanel(NULL), mSpeakPanel(NULL), mSpeakBtn(NULL), mNearbyChatBar(NULL), @@ -1095,7 +1096,9 @@ S32 LLBottomTray::processWidthDecreased(S32 delta_width) if (still_should_be_processed) { processShrinkButtons(delta_width, buttons_freed_width); + still_should_be_processed = delta_width < 0; } + // 3. Decreasing width of nearby chat. const S32 chatbar_panel_min_width = get_panel_min_width(mToolbarStack, mChatBarContainer); const S32 chatbar_panel_width = mChatBarContainer->getRect().getWidth(); |