fix for horizontal scrolling in text_editors
parent
a162a8de97
commit
3cf11892e4
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue