summaryrefslogtreecommitdiff
path: root/indra/llui/llmenubutton.cpp
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2010-12-03 17:09:22 -0500
committerOz Linden <oz@lindenlab.com>2010-12-03 17:09:22 -0500
commit7549df0eaf347e9f490f9cfaf4950dd623a08237 (patch)
tree2949dade42fc865c5abd83854b9f04529a01c581 /indra/llui/llmenubutton.cpp
parent4f5b27c933c827b98886d6218908b83e85672e3e (diff)
parent2491555272283340206f3532b9417ec07df40022 (diff)
merging beta fixes after 2.4.0-beta1
Diffstat (limited to 'indra/llui/llmenubutton.cpp')
-rw-r--r--indra/llui/llmenubutton.cpp7
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;