From 6e8c5d206ef72357bea7354f88248f671092bc0e Mon Sep 17 00:00:00 2001 From: richard Date: Wed, 28 Oct 2009 12:33:25 -0700 Subject: fix for layout updates of chat history update document rect twice increased right padding of inline widgets --- indra/llui/lltextbase.cpp | 8 +++++--- indra/newview/skins/default/xui/en/widgets/chat_history.xml | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'indra') diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp index 66ee8f4c1a..653505a12e 100644 --- a/indra/llui/lltextbase.cpp +++ b/indra/llui/lltextbase.cpp @@ -2058,9 +2058,7 @@ void LLTextBase::updateRects() // update document container dimensions according to text contents LLRect doc_rect = mContentsRect; // use old mTextRect constraint document to width of viewable region - LLRect scroll_rect = mTextRect; - // doc_rect.mLeft should be 0 - doc_rect.mRight = doc_rect.mLeft + scroll_rect.getWidth(); + doc_rect.mRight = doc_rect.mLeft + mTextRect.getWidth(); mDocumentView->setShape(doc_rect); @@ -2078,6 +2076,10 @@ void LLTextBase::updateRects() { needsReflow(); } + + // update document container again, using new mTextRect + doc_rect.mRight = doc_rect.mLeft + mTextRect.getWidth(); + mDocumentView->setShape(doc_rect); } diff --git a/indra/newview/skins/default/xui/en/widgets/chat_history.xml b/indra/newview/skins/default/xui/en/widgets/chat_history.xml index 502c396ed8..ea6997ebd5 100644 --- a/indra/newview/skins/default/xui/en/widgets/chat_history.xml +++ b/indra/newview/skins/default/xui/en/widgets/chat_history.xml @@ -5,7 +5,7 @@ left_text_pad="10" right_text_pad="15" left_widget_pad="0" - right_widget_pad="0" + right_widget_pad="10" max_length="2147483647" enabled="false" track_bottom="true" -- cgit v1.2.3