From 9ad76199e50f35749eded1ab1c10bebd265c1dbf Mon Sep 17 00:00:00 2001
From: richard <none@none>
Date: Fri, 11 Dec 2009 16:25:38 -0800
Subject: [PATCH] fixed a regression that caused bottom 15 pixels of scrollable
 text editors to appear blank

---
 indra/llui/lltextbase.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp
index ead80658e2c..18f0295d666 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);
-- 
GitLab