diff options
| author | Richard Linden <none@none> | 2011-10-18 16:43:43 -0700 | 
|---|---|---|
| committer | Richard Linden <none@none> | 2011-10-18 16:43:43 -0700 | 
| commit | b1016782a20d43c383b2d07660433c05640d39b8 (patch) | |
| tree | 90004702ef97cd71155d9b70f76603689945a678 | |
| parent | f407d4b763107ca371400b1914a036c38780b677 (diff) | |
EXP-1367 FIX Moving in and out of mouselook causes location bar to move down
| -rw-r--r-- | indra/llui/lllayoutstack.cpp | 17 | ||||
| -rw-r--r-- | indra/llui/lllayoutstack.h | 13 | 
2 files changed, 16 insertions, 14 deletions
| diff --git a/indra/llui/lllayoutstack.cpp b/indra/llui/lllayoutstack.cpp index 4991c4afa6..0e7060e22c 100644 --- a/indra/llui/lllayoutstack.cpp +++ b/indra/llui/lllayoutstack.cpp @@ -47,6 +47,19 @@ void LLLayoutStack::OrientationNames::declareValues()  //  // LLLayoutPanel  // +LLLayoutPanel::Params::Params()	 +:	expanded_min_dim("expanded_min_dim", 0), +	min_dim("min_dim", 0), +	max_dim("max_dim", S32_MAX), +	user_resize("user_resize", true), +	auto_resize("auto_resize", true) +{ +	addSynonym(min_dim, "min_width"); +	addSynonym(min_dim, "min_height"); +	addSynonym(max_dim, "max_width"); +	addSynonym(max_dim, "max_height"); +} +  LLLayoutPanel::LLLayoutPanel(const Params& p)	  :	LLPanel(p),  	mExpandedMinDimSpecified(false), @@ -527,8 +540,8 @@ void LLLayoutStack::updateLayout(BOOL force_resize)  	// not enough room to fit existing contents  	if (force_resize == FALSE  		// layout did not complete by reaching target position -		&& ((mOrientation == VERTICAL && cur_y != -mPanelSpacing) -			|| (mOrientation == HORIZONTAL && cur_x != getRect().getWidth() + mPanelSpacing))) +		&& ((mOrientation == VERTICAL && llround(cur_y) != -mPanelSpacing) +			|| (mOrientation == HORIZONTAL && llround(cur_x) != getRect().getWidth() + mPanelSpacing)))  	{  		// do another layout pass with all stacked elements contributing  		// even those that don't usually resize diff --git a/indra/llui/lllayoutstack.h b/indra/llui/lllayoutstack.h index 5d79505fc3..ede6149a80 100644 --- a/indra/llui/lllayoutstack.h +++ b/indra/llui/lllayoutstack.h @@ -161,18 +161,7 @@ public:  		Optional<bool>			user_resize,  								auto_resize; -		Params() -		:	expanded_min_dim("expanded_min_dim", 0), -			min_dim("min_dim", 0), -			max_dim("max_dim", 0), -			user_resize("user_resize", true), -			auto_resize("auto_resize", true) -		{ -			addSynonym(min_dim, "min_width"); -			addSynonym(min_dim, "min_height"); -			addSynonym(max_dim, "max_width"); -			addSynonym(max_dim, "max_height"); -		} +		Params();  	};  	~LLLayoutPanel(); | 
