diff options
author | Oz Linden <oz@lindenlab.com> | 2012-12-13 14:37:54 -0500 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2012-12-13 14:37:54 -0500 |
commit | 83a95325f82bbb5a2b0451d0c4ce8a3ff576b8d0 (patch) | |
tree | ab2020adb172b4dd686ba673ec099c667feabc5d | |
parent | a334f41f8ebec5ef812334e5086e54256e2bf7df (diff) | |
parent | ef07952d0d165cad1a3d5b3ee3ad981b6a6a4832 (diff) |
merge changes for DRTVWR-265
-rwxr-xr-x | .hgtags | 1 | ||||
-rw-r--r-- | indra/llui/llscrolllistctrl.cpp | 9 |
2 files changed, 10 insertions, 0 deletions
@@ -372,3 +372,4 @@ ab0aa2f6ba22b52fed30a2337197f589156edc75 DRTVWR-253 c23d734065ed593b2413385aecd8366d8e0ee96b DRTVWR-257 452ce96d4046dc05a3ecaecc203e2cc8ddd72e76 DRTVWR-259 5cba5f39d0a81d659f24ebc4b5efd025a39e3db1 3.4.3-release +daca610d840625b5bebb966a57cb49581852c417 DRTVWR-265 diff --git a/indra/llui/llscrolllistctrl.cpp b/indra/llui/llscrolllistctrl.cpp index 3e0653e9a4..d332aa933e 100644 --- a/indra/llui/llscrolllistctrl.cpp +++ b/indra/llui/llscrolllistctrl.cpp @@ -580,6 +580,15 @@ BOOL LLScrollListCtrl::addItem( LLScrollListItem* item, EAddPosition pos, BOOL r addColumn(col_params); } + S32 num_cols = item->getNumColumns(); + S32 i = 0; + for (LLScrollListCell* cell = item->getColumn(i); i < num_cols; cell = item->getColumn(++i)) + { + if (i >= (S32)mColumnsIndexed.size()) break; + + cell->setWidth(mColumnsIndexed[i]->getWidth()); + } + updateLineHeightInsert(item); updateLayout(); |