diff options
author | richard <none@none> | 2009-10-28 12:33:25 -0700 |
---|---|---|
committer | richard <none@none> | 2009-10-28 12:33:25 -0700 |
commit | 6e8c5d206ef72357bea7354f88248f671092bc0e (patch) | |
tree | 92830626fa8978d9da7d7fd22aaba0629dad5a8d /indra/llui/lltextbase.cpp | |
parent | 16f5b86ff9d35e4224b0f8490c61099b16ddf014 (diff) |
fix for layout updates of chat history
update document rect twice
increased right padding of inline widgets
Diffstat (limited to 'indra/llui/lltextbase.cpp')
-rw-r--r-- | indra/llui/lltextbase.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
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); } |