diff options
| author | Oz Linden <oz@lindenlab.com> | 2011-12-12 09:04:33 -0500 |
|---|---|---|
| committer | Oz Linden <oz@lindenlab.com> | 2011-12-12 09:04:33 -0500 |
| commit | f1a4593e471f4ae0e08767f73f100add683965bf (patch) | |
| tree | 0f0f42a772c9c739ee5e726a8044e2888d17b735 /indra/llui/llscrolllistctrl.cpp | |
| parent | d7e6f21981b0a00c0d89096cc17bab07be60e51a (diff) | |
| parent | 50a57ba9fec0435a990338398d5c4f23c5cc91f0 (diff) | |
merge changes for vmrg-204
Diffstat (limited to 'indra/llui/llscrolllistctrl.cpp')
| -rw-r--r-- | indra/llui/llscrolllistctrl.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/llui/llscrolllistctrl.cpp b/indra/llui/llscrolllistctrl.cpp index 622f3e215c..466fac33ea 100644 --- a/indra/llui/llscrolllistctrl.cpp +++ b/indra/llui/llscrolllistctrl.cpp @@ -175,6 +175,7 @@ LLScrollListCtrl::LLScrollListCtrl(const LLScrollListCtrl::Params& p) mBorder(NULL), mSortCallback(NULL), mPopupMenu(NULL), + mCommentTextView(NULL), mNumDynamicWidthColumns(0), mTotalStaticColumnWidth(0), mTotalColumnPadding(0), @@ -476,7 +477,12 @@ void LLScrollListCtrl::updateLayout() getRect().getWidth() - 2 * mBorderThickness, getRect().getHeight() - (2 * mBorderThickness ) - heading_size ); - getChildView("comment_text")->setShape(mItemListRect); + if (mCommentTextView == NULL) + { + mCommentTextView = getChildView("comment_text"); + } + + mCommentTextView->setShape(mItemListRect); // how many lines of content in a single "page" S32 page_lines = getLinesPerPage(); |
