fix for horizontal scrolling in text_editors

meow-7.2.2
richard 2009-12-07 15:34:19 -08:00
parent a162a8de97
commit 3cf11892e4
1 changed files with 2 additions and 2 deletions

View File

@ -2097,7 +2097,7 @@ void LLTextBase::updateRects()
LLRect doc_rect = mContentsRect;
// use old mTextRect constraint document to width of viewable region
doc_rect.mLeft = 0;
doc_rect.mRight = mTextRect.getWidth();
doc_rect.mRight = llmax(mTextRect.getWidth(), mContentsRect.mRight);
mDocumentView->setShape(doc_rect);
@ -2117,7 +2117,7 @@ void LLTextBase::updateRects()
}
// update document container again, using new mTextRect
doc_rect.mRight = doc_rect.mLeft + mTextRect.getWidth();
doc_rect.mRight = llmax(mTextRect.getWidth(), mContentsRect.mRight);
mDocumentView->setShape(doc_rect);
}