Skip to content
Snippets Groups Projects
Commit daa8d2b8 authored by Yuri Chebotarev's avatar Yuri Chebotarev
Browse files

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
parent 051da01d
No related branches found
No related tags found
No related merge requests found
...@@ -44,6 +44,7 @@ static LLDefaultChildRegistry::Register<LLWorldView> r("world_view"); ...@@ -44,6 +44,7 @@ static LLDefaultChildRegistry::Register<LLWorldView> r("world_view");
LLWorldView::LLWorldView(const Params& p) LLWorldView::LLWorldView(const Params& p)
: LLUICtrl (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) 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) ...@@ -59,3 +60,8 @@ void LLWorldView::reshape(S32 width, S32 height, BOOL called_from_parent)
LLUICtrl::reshape(width, height, called_from_parent); LLUICtrl::reshape(width, height, called_from_parent);
} }
void LLWorldView::toggleSidebarCameraMovement(const LLSD::Boolean& new_visibility)
{
reshape(getParent()->getRect().getWidth(),getRect().getHeight());
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment