diff options
| author | andreykproductengine <none@none> | 2016-11-09 20:32:19 +0200 | 
|---|---|---|
| committer | andreykproductengine <none@none> | 2016-11-09 20:32:19 +0200 | 
| commit | 3d870a9c17d796bf4af68e3077e6dc51e284b3e0 (patch) | |
| tree | 7b31e99a02bc5a4916f91913210dc59736e98b80 | |
| parent | 5921cc9d8a3896af70836eb2dbc8c8085e13ee43 (diff) | |
MAINT-6880 Viewer notification was not centered.
| -rw-r--r-- | indra/newview/llscreenchannel.cpp | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/indra/newview/llscreenchannel.cpp b/indra/newview/llscreenchannel.cpp index ba2c37ce7c..681787bcbe 100644 --- a/indra/newview/llscreenchannel.cpp +++ b/indra/newview/llscreenchannel.cpp @@ -117,6 +117,14 @@ BOOL LLScreenChannelBase::postBuild()  void LLScreenChannelBase::reshape(S32 width, S32 height, BOOL called_from_parent)  { +	if (mChannelAlignment == CA_CENTRE) +	{ +		// Keep notifications and alerts centered +		// WorldViewRectScaled is out of date at reshape but Window has same width +		S32 channel_bound = gViewerWindow->getWindowRectScaled().getWidth() / 2; +		setRect(LLRect(channel_bound, 0, channel_bound, 0)); +		updateRect(); //sets top and bottom only +	}  	redrawToasts();  } | 
