diff options
author | Don Kjer <don@lindenlab.com> | 2007-07-02 17:10:30 +0000 |
---|---|---|
committer | Don Kjer <don@lindenlab.com> | 2007-07-02 17:10:30 +0000 |
commit | e5124431b54d4342d4677371fccca5bc7250c079 (patch) | |
tree | 8c9636e78e93cef6ed099d9abd72ec9ccbbf35fe /indra/newview/llpanellogin.cpp | |
parent | ce5e13630cd8f4174549a3ec4ae8c24eec90bb3d (diff) |
svn merge -r 64079:64548 svn+ssh://svn/svn/linden/branches/maintenance into release
Diffstat (limited to 'indra/newview/llpanellogin.cpp')
-rw-r--r-- | indra/newview/llpanellogin.cpp | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/indra/newview/llpanellogin.cpp b/indra/newview/llpanellogin.cpp index 58a5969792..c3d4551032 100644 --- a/indra/newview/llpanellogin.cpp +++ b/indra/newview/llpanellogin.cpp @@ -200,7 +200,8 @@ LLPanelLogin::LLPanelLogin(const LLRect &rect, text->setClickedCallback(onClickVersion); text->setCallbackUserData(this); - // HACK + // HACK to move to the lower-right of the window + // replace/remove this logic when we have dynamic layouts S32 right = getRect().mRight; LLRect r = text->getRect(); const S32 PAD = 2; @@ -209,6 +210,31 @@ LLPanelLogin::LLPanelLogin(const LLRect &rect, text->setRect(r); } + LLTextBox* channel_text = LLUICtrlFactory::getTextBoxByName(this, "channel_text"); + if (channel_text) + { + channel_text->setText(gChannelName); + channel_text->setClickedCallback(onClickVersion); + channel_text->setCallbackUserData(this); + + // HACK to move to the right of the window, above the version string, + // replace/remove this logic when we have dynamic layouts + S32 right = getRect().mRight; + LLRect r = channel_text->getRect(); + const S32 PAD = 2; + S32 version_string_top = r.mTop; + if(text) + { + version_string_top = text->getRect().mTop; + } + r.setOriginAndSize( + right - r.getWidth() - PAD, + version_string_top, + r.getWidth(), + r.getHeight()); + channel_text->setRect(r); + } + // get the web browser control #if LL_LIBXUL_ENABLED LLWebBrowserCtrl* web_browser = LLUICtrlFactory::getWebBrowserCtrlByName(this, "login_html"); |