diff options
author | Leyla Farazha <leyla@lindenlab.com> | 2010-11-30 16:40:18 -0800 |
---|---|---|
committer | Leyla Farazha <leyla@lindenlab.com> | 2010-11-30 16:40:18 -0800 |
commit | 6e62c6c410df9001b56ffd57c6c6d8cd9fe035e6 (patch) | |
tree | 22a77be7720c4ea9cf9a17f70b00b14f68122454 /indra/llui/llmenubutton.cpp | |
parent | c489f33169bdf88df24c430c278038b2f5a0630a (diff) | |
parent | b778ba9b882ecb03e61b3b9bd833618ca096f5da (diff) |
Merge
Diffstat (limited to 'indra/llui/llmenubutton.cpp')
-rw-r--r-- | indra/llui/llmenubutton.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/llui/llmenubutton.cpp b/indra/llui/llmenubutton.cpp index ac568a83e4..eed0085273 100644 --- a/indra/llui/llmenubutton.cpp +++ b/indra/llui/llmenubutton.cpp @@ -175,6 +175,13 @@ void LLMenuButton::updateMenuOrigin() mY = rect.mTop + mMenuHandle.get()->getRect().getHeight(); break; } + case MP_TOP_RIGHT: + { + const LLRect& menu_rect = mMenuHandle.get()->getRect(); + mX = rect.mRight - menu_rect.getWidth(); + mY = rect.mTop + menu_rect.getHeight(); + break; + } case MP_BOTTOM_LEFT: { mX = rect.mLeft; |