From 38d54c07508ece7c08a0cc14e9da4706b3f7ef16 Mon Sep 17 00:00:00 2001
From: Sergei Litovchuk <slitovchuk@productengine.com>
Date: Tue, 6 Jul 2010 17:25:02 +0300
Subject: [PATCH] EXT-8180 FIXED Added resetting wearable items list position
 to top on "Add More" panel reopen.

Reviewed by Vadim Savchuk at https://codereview.productengine.com/secondlife/r/680/.

--HG--
branch : product-engine
---
 indra/newview/llpaneloutfitedit.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/indra/newview/llpaneloutfitedit.cpp b/indra/newview/llpaneloutfitedit.cpp
index f38ff842e99..289fe8c570f 100644
--- a/indra/newview/llpaneloutfitedit.cpp
+++ b/indra/newview/llpaneloutfitedit.cpp
@@ -931,6 +931,9 @@ void LLPanelOutfitEdit::showFilteredWearablesListView(LLWearableType::EType type
 	showAddWearablesPanel(true);
 	showWearablesListView();
 
+	// Reset mWearableItemsList position to top. See EXT-8180.
+	mWearableItemsList->goToTop();
+
 	//e_list_view_item_type implicitly contains LLWearableType::EType starting from LVIT_SHAPE
 	applyListViewFilter((EListViewItemType) (LVIT_SHAPE + type));
 }
-- 
GitLab