From c157c1176a570ab61978063dcc8d0ce3fe31483d Mon Sep 17 00:00:00 2001 From: Dmitry Zaporozhan Date: Tue, 15 Dec 2009 10:54:37 +0200 Subject: Update for normal task EXT-3089 - Notification toasts positioning, layering and stacking. Docked LLDialogs are part of toasts positioning rules. --HG-- branch : product-engine --- indra/newview/llscreenchannel.cpp | 8 ++++++-- indra/newview/llscriptfloater.cpp | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'indra/newview') diff --git a/indra/newview/llscreenchannel.cpp b/indra/newview/llscreenchannel.cpp index 78cc7c54dc..bd256ec9c2 100644 --- a/indra/newview/llscreenchannel.cpp +++ b/indra/newview/llscreenchannel.cpp @@ -815,14 +815,18 @@ void LLScreenChannel::updateShowToastsState() } // for Message Well floater showed in a docked state - adjust channel's height - if(dynamic_cast(floater) || dynamic_cast(floater)) + if(dynamic_cast(floater) || dynamic_cast(floater) + || dynamic_cast(floater)) { S32 channel_bottom = gViewerWindow->getWorldViewRectScaled().mBottom + gSavedSettings.getS32("ChannelBottomPanelMargin");; LLRect this_rect = getRect(); if(floater->getVisible() && floater->isDocked()) { channel_bottom += floater->getRect().getHeight(); - channel_bottom += floater->getDockControl()->getTongueHeight(); + if(floater->getDockControl()) + { + channel_bottom += floater->getDockControl()->getTongueHeight(); + } } if(channel_bottom != this_rect.mBottom) diff --git a/indra/newview/llscriptfloater.cpp b/indra/newview/llscriptfloater.cpp index 9884aec2e3..1962d871a6 100644 --- a/indra/newview/llscriptfloater.cpp +++ b/indra/newview/llscriptfloater.cpp @@ -209,6 +209,7 @@ void LLScriptFloater::hideToastsIfNeeded() if(channel) { channel->updateShowToastsState(); + channel->redrawToasts(); } } -- cgit v1.2.3