summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorPaul ProductEngine <pguslisty@productengine.com>2011-10-17 16:42:14 +0200
committerPaul ProductEngine <pguslisty@productengine.com>2011-10-17 16:42:14 +0200
commitffa53cf63f28539c9bed92dc70f916a7f068de71 (patch)
tree1ed1ae4ba785a5c4038b7cbf284c7f5fd82508d4 /indra
parent6d1ae4e0d6668983dc9386903155e426bd2912a3 (diff)
EXP-1333 FIXED (Move IM toasts to upper right and flip vertically)
- Nearby chat toasts flipped vertically - Fixed notification and IM well floaters docking state saving.
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llnearbychathandler.cpp12
-rw-r--r--indra/newview/skins/default/xui/en/floater_sys_well.xml1
2 files changed, 7 insertions, 6 deletions
diff --git a/indra/newview/llnearbychathandler.cpp b/indra/newview/llnearbychathandler.cpp
index 1ba1d2f0f0..8607718e90 100644
--- a/indra/newview/llnearbychathandler.cpp
+++ b/indra/newview/llnearbychathandler.cpp
@@ -384,9 +384,9 @@ void LLNearbyChatScreenChannel::arrangeToasts()
channel_rect.mLeft += 10;
channel_rect.mRight = channel_rect.mLeft + 300;
- S32 channel_bottom = channel_rect.mBottom;
+ S32 channel_top = channel_rect.mTop;
- S32 bottom = channel_bottom + 10;
+ S32 top = channel_top - 10;
S32 margin = gSavedSettings.getS32("ToastGap");
//sort active toasts
@@ -403,9 +403,9 @@ void LLNearbyChatScreenChannel::arrangeToasts()
continue;
}
- S32 toast_top = bottom + toast->getRect().getHeight() + margin;
+ S32 toast_bottom = top - toast->getRect().getHeight() - margin;
- if(toast_top > channel_rect.getHeight())
+ if(toast_bottom < channel_rect.mBottom)
{
while(it!=m_active_toasts.end())
{
@@ -416,10 +416,10 @@ void LLNearbyChatScreenChannel::arrangeToasts()
}
toast_rect = toast->getRect();
- toast_rect.setLeftTopAndSize(channel_rect.mLeft , bottom + toast_rect.getHeight(), toast_rect.getWidth() ,toast_rect.getHeight());
+ toast_rect.setOriginAndSize(channel_rect.mLeft , toast_bottom, toast_rect.getWidth() ,toast_rect.getHeight());
toast->setRect(toast_rect);
- bottom += toast_rect.getHeight() - toast->getTopPad() + margin;
+ top -= toast_rect.getHeight() - toast->getTopPad() + margin;
}
// use reverse order to provide correct z-order and avoid toast blinking
diff --git a/indra/newview/skins/default/xui/en/floater_sys_well.xml b/indra/newview/skins/default/xui/en/floater_sys_well.xml
index 62501ea2b7..9b96a5badc 100644
--- a/indra/newview/skins/default/xui/en/floater_sys_well.xml
+++ b/indra/newview/skins/default/xui/en/floater_sys_well.xml
@@ -16,6 +16,7 @@
can_resize="true"
can_drag_on_left="false"
can_dock="true"
+ save_dock_state="true"
save_visibility="true"
single_instance="true"
>