diff options
| author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2020-11-21 00:06:32 +0200 | 
|---|---|---|
| committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2020-11-21 00:06:47 +0200 | 
| commit | f534e37328e7408b1609c9b78d13c6c749091e53 (patch) | |
| tree | c5f80997b253ac905afa2fbb883de65916407ba0 /indra | |
| parent | e98a6b0b4592e88217fcdff7df743688ef692818 (diff) | |
SL-14368 Expanding the 'People' floater to the right does not expand the displayed values
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/llui/llscrolllistctrl.cpp | 24 | ||||
| -rw-r--r-- | indra/newview/llappviewer.cpp | 2 | 
2 files changed, 22 insertions, 4 deletions
| diff --git a/indra/llui/llscrolllistctrl.cpp b/indra/llui/llscrolllistctrl.cpp index dc525517bf..a6e4f3a2af 100644 --- a/indra/llui/llscrolllistctrl.cpp +++ b/indra/llui/llscrolllistctrl.cpp @@ -763,14 +763,20 @@ void LLScrollListCtrl::updateColumns(bool force_update)  		}  	} +	bool header_changed_width = false;  	// expand last column header we encountered to full list width  	if (last_header)  	{ +		S32 old_width = last_header->getColumn()->getWidth();  		S32 new_width = llmax(0, mItemListRect.mRight - last_header->getRect().mLeft);  		last_header->reshape(new_width, last_header->getRect().getHeight());  		last_header->setVisible(mDisplayColumnHeaders && new_width > 0); -		last_header->getColumn()->setWidth(new_width); -	} +        if (old_width != new_width) +        { +            last_header->getColumn()->setWidth(new_width); +            header_changed_width = true; +        } +    }  	// propagate column widths to individual cells  	if (columns_changed_width || force_update) @@ -789,6 +795,20 @@ void LLScrollListCtrl::updateColumns(bool force_update)  			}  		}  	} +    else if (header_changed_width) +    { +        item_list::iterator iter; +        S32 index = last_header->getColumn()->mIndex; // Not always identical to last column! +        for (iter = mItemList.begin(); iter != mItemList.end(); iter++) +        { +            LLScrollListItem *itemp = *iter; +            LLScrollListCell* cell = itemp->getColumn(index); +            if (cell) +            { +                cell->setWidth(last_header->getColumn()->getWidth()); +            } +        } +    }  }  void LLScrollListCtrl::setHeadingHeight(S32 heading_height) diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index 808a9d63c6..9f8584cd8b 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -1882,8 +1882,6 @@ bool LLAppViewer::cleanup()  	SUBSYSTEM_CLEANUP(LLAvatarAppearance); -	SUBSYSTEM_CLEANUP(LLAvatarAppearance); -  	SUBSYSTEM_CLEANUP(LLPostProcess);  	LLTracker::cleanupInstance(); | 
