diff options
author | Leyla Farazha <leyla@lindenlab.com> | 2011-11-02 10:49:04 -0700 |
---|---|---|
committer | Leyla Farazha <leyla@lindenlab.com> | 2011-11-02 10:49:04 -0700 |
commit | 405602baa624d916f200f2cd1e8343ba7b4633ff (patch) | |
tree | e4509081f1c2c2a25b167822bb966568c1916bd6 /indra/llui/llmenugl.cpp | |
parent | f0759dea4a43f0d7610b265c84a1acfad058b1cb (diff) | |
parent | ba2fa73aaab5415c38fd9f489c590d8cba05e24f (diff) |
merge
Diffstat (limited to 'indra/llui/llmenugl.cpp')
-rw-r--r-- | indra/llui/llmenugl.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/llui/llmenugl.cpp b/indra/llui/llmenugl.cpp index 3ef8d8ff35..cb237fca7c 100644 --- a/indra/llui/llmenugl.cpp +++ b/indra/llui/llmenugl.cpp @@ -1686,7 +1686,8 @@ LLMenuGL::LLMenuGL(const LLMenuGL::Params& p) mSpilloverMenu(NULL), mJumpKey(p.jump_key), mCreateJumpKeys(p.create_jump_keys), - mNeedsArrange(FALSE), + mNeedsArrange(FALSE), + mResetScrollPositionOnShow(true), mShortcutPad(p.shortcut_pad) { typedef boost::tokenizer<boost::char_separator<char> > tokenizer; @@ -3043,7 +3044,7 @@ void LLMenuGL::showPopup(LLView* spawning_view, LLMenuGL* menu, S32 x, S32 y) S32 mouse_x, mouse_y; // Resetting scrolling position - if (menu->isScrollable()) + if (menu->isScrollable() && menu->isScrollPositionOnShowReset()) { menu->mFirstVisibleItem = NULL; } |