From daa8d2b823fa0ca2a084bfbb38a7ee04720e6829 Mon Sep 17 00:00:00 2001 From: Yuri Chebotarev Date: Wed, 26 May 2010 11:40:01 +0300 Subject: EXT-7434 FIX Worldview rect wasn't updated when "SidebarCameraMovement" variable was changes. reviewed by Mike Antipov at https://codereview.productengine.com/secondlife/r/443/ --HG-- branch : product-engine --- indra/newview/llworldview.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'indra/newview') diff --git a/indra/newview/llworldview.cpp b/indra/newview/llworldview.cpp index 665cc74a87..6336f8895a 100644 --- a/indra/newview/llworldview.cpp +++ b/indra/newview/llworldview.cpp @@ -44,6 +44,7 @@ static LLDefaultChildRegistry::Register r("world_view"); LLWorldView::LLWorldView(const Params& p) : LLUICtrl (p) { + gSavedSettings.getControl("SidebarCameraMovement")->getSignal()->connect(boost::bind(&LLWorldView::toggleSidebarCameraMovement, this, _2)); } void LLWorldView::reshape(S32 width, S32 height, BOOL called_from_parent) @@ -59,3 +60,8 @@ void LLWorldView::reshape(S32 width, S32 height, BOOL called_from_parent) LLUICtrl::reshape(width, height, called_from_parent); } +void LLWorldView::toggleSidebarCameraMovement(const LLSD::Boolean& new_visibility) +{ + reshape(getParent()->getRect().getWidth(),getRect().getHeight()); +} + -- cgit v1.2.3