summaryrefslogtreecommitdiff
path: root/indra/llui/lltextbase.cpp
diff options
context:
space:
mode:
authorJames Cook <james@lindenlab.com>2009-12-01 11:45:45 -0800
committerJames Cook <james@lindenlab.com>2009-12-01 11:45:45 -0800
commit8025c15a71fa1ee9fa34781f7cf74dde8c4e622b (patch)
treeed1bc960a53ee288b8cfc42bfadca736ce57bc4e /indra/llui/lltextbase.cpp
parent21a2cae9993ac460f37bec3fc7aaae3d719339f1 (diff)
parent594f96b92ee86570d1973510a44a494dc520b523 (diff)
merge
Diffstat (limited to 'indra/llui/lltextbase.cpp')
-rw-r--r--indra/llui/lltextbase.cpp3
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);