From b9521a38f11dd9f44f216adb7d02263d25272572 Mon Sep 17 00:00:00 2001
From: Richard Linden <none@none>
Date: Wed, 14 Mar 2012 15:00:48 -0700
Subject: [PATCH] CHUI-59 FIX Floater stacking offset only occurs first time a
 floater is opened changed stacking logic to attempt to stack against any
 floater that is cascade head *or* in a cascade group

---
 indra/llui/llfloaterreg.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/indra/llui/llfloaterreg.cpp b/indra/llui/llfloaterreg.cpp
index ef55e741660..3d124cf8857 100644
--- a/indra/llui/llfloaterreg.cpp
+++ b/indra/llui/llfloaterreg.cpp
@@ -96,7 +96,9 @@ LLFloater* LLFloaterReg::getLastFloaterCascading()
 		{
 			LLFloater* inst = *iter;
 
-			if (inst->getVisible() && inst->isPositioning(LLFloaterEnums::POSITIONING_CASCADING))
+			if (inst->getVisible() 
+				&& (inst->isPositioning(LLFloaterEnums::POSITIONING_CASCADING)
+					|| inst->isPositioning(LLFloaterEnums::POSITIONING_CASCADE_GROUP)))
 			{
 				if (candidate_rect.mTop > inst->getRect().mTop)
 				{
-- 
GitLab