diff options
| author | Kelly Washington <kelly@lindenlab.com> | 2012-11-12 15:38:58 -0800 |
|---|---|---|
| committer | Kelly Washington <kelly@lindenlab.com> | 2012-11-12 15:38:58 -0800 |
| commit | c5f6ff43da6a7cf5a20c61c16ba0c7aaaeb5687f (patch) | |
| tree | 5d1232de9cd08e494d3b1dafe01fb2a6da74aea0 /indra/llui/llscrolllistcolumn.cpp | |
| parent | 6a947c80c316230093d45c40926ba202ba1a5cc1 (diff) | |
MAINT-1897 Poor performance viewing large group member lists
* Improve draw performance of scroll lists by only drawing what is visible
* Reduce frequency of expensive column width calculations
Fixes by Richard
Diffstat (limited to 'indra/llui/llscrolllistcolumn.cpp')
| -rw-r--r-- | indra/llui/llscrolllistcolumn.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/llui/llscrolllistcolumn.cpp b/indra/llui/llscrolllistcolumn.cpp index 07a6dfaa10..af124d9826 100644 --- a/indra/llui/llscrolllistcolumn.cpp +++ b/indra/llui/llscrolllistcolumn.cpp @@ -98,6 +98,7 @@ BOOL LLScrollColumnHeader::handleDoubleClick(S32 x, S32 y, MASK mask) if (canResize() && mResizeBar->getRect().pointInRect(x, y)) { // reshape column to max content width + mColumn->mParentCtrl->calcMaxContentWidth(); LLRect column_rect = getRect(); column_rect.mRight = column_rect.mLeft + mColumn->mMaxContentWidth; setShape(column_rect, true); @@ -127,6 +128,8 @@ LLView* LLScrollColumnHeader::findSnapEdge(S32& new_edge_val, const LLCoordGL& m LLRect snap_rect = getSnapRect(); + mColumn->mParentCtrl->calcMaxContentWidth(); + S32 snap_delta = mColumn->mMaxContentWidth - snap_rect.getWidth(); // x coord growing means column growing, so same signs mean we're going in right direction |
