Skip to content
Snippets Groups Projects
Commit b9521a38 authored by Richard Linden's avatar Richard Linden
Browse files

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
parent 3fc4f469
No related branches found
No related tags found
No related merge requests found
...@@ -96,7 +96,9 @@ LLFloater* LLFloaterReg::getLastFloaterCascading() ...@@ -96,7 +96,9 @@ LLFloater* LLFloaterReg::getLastFloaterCascading()
{ {
LLFloater* inst = *iter; 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) if (candidate_rect.mTop > inst->getRect().mTop)
{ {
......
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