diff options
| author | Loren Shih <seraph@lindenlab.com> | 2010-12-29 13:23:02 -0500 | 
|---|---|---|
| committer | Loren Shih <seraph@lindenlab.com> | 2010-12-29 13:23:02 -0500 | 
| commit | 5f99331f4a9ed5ed78af7b47bdad152949e63ec4 (patch) | |
| tree | 78aa91b7a1ac5f31a4e1de11f1a30d4b53561a05 /indra/newview/llimfloater.cpp | |
| parent | ed365b9c0eea12fa30629be7d26605b77eeedc05 (diff) | |
| parent | 087c105317058dc3a011c937a5aceaf87fdecc26 (diff) | |
Automated merge up from viewer-development
Diffstat (limited to 'indra/newview/llimfloater.cpp')
| -rw-r--r-- | indra/newview/llimfloater.cpp | 11 | 
1 files changed, 4 insertions, 7 deletions
| diff --git a/indra/newview/llimfloater.cpp b/indra/newview/llimfloater.cpp index bdc0dfa7e2..f74ae92a7b 100644 --- a/indra/newview/llimfloater.cpp +++ b/indra/newview/llimfloater.cpp @@ -470,7 +470,7 @@ LLIMFloater* LLIMFloater::show(const LLUUID& session_id)  }  //static -bool LLIMFloater::resetAllowedRectPadding(const LLSD& newvalue) +bool LLIMFloater::resetAllowedRectPadding()  {  	//reset allowed rect right padding if "SidebarCameraMovement" option   	//or sidebar state changed @@ -482,10 +482,10 @@ void LLIMFloater::getAllowedRect(LLRect& rect)  {  	if (sAllowedRectRightPadding == RECT_PADDING_NOT_INIT) //wasn't initialized  	{ -		gSavedSettings.getControl("SidebarCameraMovement")->getSignal()->connect(boost::bind(&LLIMFloater::resetAllowedRectPadding, _2)); +		gSavedSettings.getControl("SidebarCameraMovement")->getSignal()->connect(boost::bind(&LLIMFloater::resetAllowedRectPadding));  		LLSideTray*	side_bar = LLSideTray::getInstance(); -		side_bar->getCollapseSignal().connect(boost::bind(&LLIMFloater::resetAllowedRectPadding, _2)); +		side_bar->setVisibleWidthChangeCallback(boost::bind(&LLIMFloater::resetAllowedRectPadding));  		sAllowedRectRightPadding = RECT_PADDING_NEED_RECALC;  	} @@ -500,10 +500,7 @@ void LLIMFloater::getAllowedRect(LLRect& rect)  		if (gSavedSettings.getBOOL("SidebarCameraMovement") == FALSE)  		{ -			LLSideTray*	side_bar = LLSideTray::getInstance(); - -			if (side_bar->getVisible() && !side_bar->getCollapsed()) -				sAllowedRectRightPadding += side_bar->getRect().getWidth(); +			sAllowedRectRightPadding += LLSideTray::getInstance()->getVisibleWidth();  		}  	}  	rect.mRight -= sAllowedRectRightPadding; | 
