diff options
| author | Leyla Farazha <leyla@lindenlab.com> | 2011-06-23 17:51:55 -0700 | 
|---|---|---|
| committer | Leyla Farazha <leyla@lindenlab.com> | 2011-06-23 17:51:55 -0700 | 
| commit | cf7b10a289edf44f32537d585024a00e8d490265 (patch) | |
| tree | 5a07d567ccdc6546b6b05058f2641b683e99faa4 | |
| parent | 71b6d9d842e03a4a1eece88ec20a50b041b6137f (diff) | |
| parent | 926e09676173a20bf4f42837549dd68d7a1f50e0 (diff) | |
merge
| -rw-r--r-- | indra/llui/lllayoutstack.cpp | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/llui/lllayoutstack.cpp b/indra/llui/lllayoutstack.cpp index 7e0c5542ea..6a91ec56e4 100644 --- a/indra/llui/lllayoutstack.cpp +++ b/indra/llui/lllayoutstack.cpp @@ -93,13 +93,13 @@ F32 LLLayoutPanel::getCollapseFactor(LLLayoutStack::ELayoutOrientation orientati  	if (orientation == LLLayoutStack::HORIZONTAL)  	{  		F32 collapse_amt =  -			clamp_rescale(mCollapseAmt, 0.f, 1.f, 1.f, getRelevantMinDim() / (F32)llmax(1, getRect().getWidth())); +			clamp_rescale(mCollapseAmt, 0.f, 1.f, 1.f, (F32)getRelevantMinDim() / (F32)llmax(1, getRect().getWidth()));  		return mVisibleAmt * collapse_amt;  	}  	else  	{  		F32 collapse_amt =  -			clamp_rescale(mCollapseAmt, 0.f, 1.f, 1.f, llmin(1.f, getRelevantMinDim() / (F32)llmax(1, getRect().getHeight()))); +			clamp_rescale(mCollapseAmt, 0.f, 1.f, 1.f, llmin(1.f, (F32)getRelevantMinDim() / (F32)llmax(1, getRect().getHeight())));  		return mVisibleAmt * collapse_amt;  	}  } @@ -456,7 +456,7 @@ void LLLayoutStack::updateLayout(BOOL force_resize)  		S32 cur_height = panelp->getRect().getHeight();  		S32 new_width = cur_width;  		S32 new_height = cur_height; -		S32 relevant_min = (S32) panelp->getRelevantMinDim(); +		S32 relevant_min = panelp->getRelevantMinDim();  		if (mOrientation == HORIZONTAL)  		{ @@ -566,7 +566,7 @@ void LLLayoutStack::updateLayout(BOOL force_resize)  	for (panel_it = mPanels.begin(); panel_it != mPanels.end(); ++panel_it)  	{  		LLLayoutPanel* panelp = (*panel_it); -		F32 relevant_min = panelp->getRelevantMinDim(); +		S32 relevant_min = panelp->getRelevantMinDim();  		if (mOrientation == HORIZONTAL)  		{  | 
