diff options
author | Richard Linden <none@none> | 2010-07-14 11:48:33 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2010-07-14 11:48:33 -0700 |
commit | 1d1377079b08ada11bc33cc88ee25761b1954d5c (patch) | |
tree | 87621c6ebb4a4ed298ab74be1170bafffd623667 /indra/llui | |
parent | 7fc3d509ea41522382448be5caac9388827b5859 (diff) |
EXT-8300 FIX Creator's icon overlaps description text on object's mini-inspector
reviewed by Leyla
Diffstat (limited to 'indra/llui')
-rw-r--r-- | indra/llui/lltextbase.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp index ed03645944..d3b2a368a5 100644 --- a/indra/llui/lltextbase.cpp +++ b/indra/llui/lltextbase.cpp @@ -2282,6 +2282,12 @@ void LLTextBase::updateRects() ? llmax(mVisibleTextRect.getWidth(), mTextBoundingRect.mRight) : mVisibleTextRect.getWidth(); + if (!mScroller) + { + // push doc rect to top of text widget + doc_rect.translate(0, mVisibleTextRect.getHeight() - doc_rect.mTop); + } + mDocumentView->setShape(doc_rect); //update mVisibleTextRect *after* mDocumentView has been resized @@ -2786,9 +2792,9 @@ F32 LLLineBreakTextSegment::draw(S32 start, S32 end, S32 selection_start, S32 se } LLImageTextSegment::LLImageTextSegment(LLStyleConstSP style,S32 pos,class LLTextBase& editor) - :LLTextSegment(pos,pos+1) - ,mStyle( style ) - ,mEditor(editor) +: LLTextSegment(pos,pos+1), + mStyle( style ), + mEditor(editor) { } |