diff options
author | richard <none@none> | 2009-12-11 16:25:38 -0800 |
---|---|---|
committer | richard <none@none> | 2009-12-11 16:25:38 -0800 |
commit | 9ad76199e50f35749eded1ab1c10bebd265c1dbf (patch) | |
tree | 62e8bc0c99a9b0879265fe74f39df5e117d6b77c | |
parent | c6234f352a318806fc5784d15440c5e632449719 (diff) |
fixed a regression that caused bottom 15 pixels of scrollable text editors to appear blank
-rw-r--r-- | indra/llui/lltextbase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp index ead80658e2..18f0295d66 100644 --- a/indra/llui/lltextbase.cpp +++ b/indra/llui/lltextbase.cpp @@ -2099,10 +2099,10 @@ void LLTextBase::updateRects() doc_rect.mLeft = 0; // allow horizontal scrolling? - // if so, use entire width of text contents (sans scrollbars) + // if so, use entire width of text contents // otherwise, stop at width of mVisibleTextRect doc_rect.mRight = mScroller - ? llmax(mScroller->getRect().mRight - mScroller->getBorderWidth(), mTextBoundingRect.mRight) + ? llmax(mVisibleTextRect.getWidth(), mTextBoundingRect.mRight) : mVisibleTextRect.getWidth(); mDocumentView->setShape(doc_rect); |