From 93faa08da9d8ebab516191f4b446e86d3c2800a2 Mon Sep 17 00:00:00 2001 From: Richard Linden Date: Thu, 30 Sep 2010 20:19:24 -0700 Subject: EXP-128 FIX Stand button displays partially offscreen --- indra/newview/llmoveview.cpp | 9 +++++++-- 1 file 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(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); } -- cgit v1.2.3