diff options
author | James Cook <james@lindenlab.com> | 2009-12-01 11:29:33 -0800 |
---|---|---|
committer | James Cook <james@lindenlab.com> | 2009-12-01 11:29:33 -0800 |
commit | d5d1db8833473e9524340071f551d019a13fea21 (patch) | |
tree | 9c2a679363f8fa4d9c7927030780a6fae10c458b /indra/llui/lltextbase.cpp | |
parent | 5e11affddb1b8816f57f9314381486c00033e080 (diff) |
EXT-3015 Fixed right and center aligned text boxes
Document rect left edge was being computed incorrectly.
Made floater_test_textbox.xml have more examples of text.
Reviewed with Kelly
Diffstat (limited to 'indra/llui/lltextbase.cpp')
-rw-r--r-- | indra/llui/lltextbase.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp index 64164df17f..db16670f79 100644 --- a/indra/llui/lltextbase.cpp +++ b/indra/llui/lltextbase.cpp @@ -2096,7 +2096,8 @@ 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 - doc_rect.mRight = doc_rect.mLeft + mTextRect.getWidth(); + doc_rect.mLeft = 0; + doc_rect.mRight = mTextRect.getWidth(); mDocumentView->setShape(doc_rect); |