diff options
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llmoveview.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/indra/newview/llmoveview.cpp b/indra/newview/llmoveview.cpp index 35c74d290b..f6b85de4b8 100644 --- a/indra/newview/llmoveview.cpp +++ b/indra/newview/llmoveview.cpp @@ -740,12 +740,17 @@ void LLPanelStandStopFlying::updatePosition() LLButton* movement_btn = tray->findChild<LLButton>(BOTTOM_TRAY_BUTTON_NAME); + S32 x = 0; if (movement_btn) { // Align centers of the button and the panel. - S32 x = movement_btn->calcScreenRect().getCenterX() - getRect().getWidth()/2; - setOrigin(x, 0); + x = movement_btn->calcScreenRect().getCenterX() - getRect().getWidth()/2; + } + else + { + x = tray->calcScreenRect().getCenterX() - getRect().getWidth()/2; } + setOrigin(x, 0); } |