summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2012-12-13 14:37:54 -0500
committerOz Linden <oz@lindenlab.com>2012-12-13 14:37:54 -0500
commit83a95325f82bbb5a2b0451d0c4ce8a3ff576b8d0 (patch)
treeab2020adb172b4dd686ba673ec099c667feabc5d
parenta334f41f8ebec5ef812334e5086e54256e2bf7df (diff)
parentef07952d0d165cad1a3d5b3ee3ad981b6a6a4832 (diff)
merge changes for DRTVWR-265
-rwxr-xr-x.hgtags1
-rw-r--r--indra/llui/llscrolllistctrl.cpp9
2 files changed, 10 insertions, 0 deletions
diff --git a/.hgtags b/.hgtags
index 11c544b106..c57c2cd58d 100755
--- a/.hgtags
+++ b/.hgtags
@@ -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();