fix for vertical truncation of sidebar headers

master
Richard Linden 2010-07-29 11:56:19 -07:00
parent 4431d60370
commit e69f0f8a02
1 changed files with 4 additions and 2 deletions

View File

@ -1029,8 +1029,10 @@ void LLTextBase::draw()
LLUICtrl::draw();
{
// only clip if we support scrolling or have word wrap turned off
LLLocalClipRect clip(doc_rect, !getWordWrap() || mScroller != NULL);
// only clip if we support scrolling...
// since convention is that text boxes never vertically truncate their contents
// regardless of rect bounds
LLLocalClipRect clip(doc_rect, mScroller != NULL);
drawSelectionBackground();
drawText();
drawCursor();