summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorRichard Linden <none@none>2012-03-05 20:10:17 -0800
committerRichard Linden <none@none>2012-03-05 20:10:17 -0800
commit6c60f214fd4959c9cd71df566edbfe0dc902496f (patch)
tree32358ec40651548d076e19afb69fdb4a7d911898 /indra/llui
parent6b0f0a89fd6a8285f91c13699327182f513efbd5 (diff)
CHUI-55 FIX Floaters that have set positions from old viewer versions can appear off screen until user repositions the floaters manually
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/llfloater.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/indra/llui/llfloater.cpp b/indra/llui/llfloater.cpp
index d058b4ae44..b091a4a1f7 100644
--- a/indra/llui/llfloater.cpp
+++ b/indra/llui/llfloater.cpp
@@ -933,8 +933,13 @@ void LLFloater::applyPositioning(LLFloater* other, bool on_open)
case LLFloaterEnums::POSITIONING_SPECIFIED:
break;
- case LLFloaterEnums::POSITIONING_CASCADE_GROUP:
case LLFloaterEnums::POSITIONING_CASCADING:
+ if (!on_open)
+ {
+ applyRelativePosition();
+ }
+ // fall through
+ case LLFloaterEnums::POSITIONING_CASCADE_GROUP:
if (on_open)
{
if (other != NULL && other != this)
@@ -3286,7 +3291,7 @@ void LLFloater::stackWith(LLFloater& other)
setShape(next_rect);
- //other.mPositioning = LLFloaterEnums::POSITIONING_SPECIFIED;
+ other.mPositioning = LLFloaterEnums::POSITIONING_CASCADE_GROUP;
other.setFollows(FOLLOWS_LEFT | FOLLOWS_TOP);
}