|  | @@ -13,6 +13,8 @@ namespace GFGGame
 | 
	
		
			
				|  |  |          private ValueBarController _valueBarController;
 | 
	
		
			
				|  |  |          private int menu2;
 | 
	
		
			
				|  |  |          private EffectUI _effectUI1;
 | 
	
		
			
				|  |  | +        private int ScrollToViewIndex = 0;
 | 
	
		
			
				|  |  | +        private bool firstToIndex;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          public override void Dispose()
 | 
	
		
			
				|  |  |          {
 | 
	
	
		
			
				|  | @@ -81,6 +83,8 @@ namespace GFGGame
 | 
	
		
			
				|  |  |          private void UpdateView()
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  |              GetGrowthFundBuy();
 | 
	
		
			
				|  |  | +            ScrollToViewIndex = 0;
 | 
	
		
			
				|  |  | +            firstToIndex = true;
 | 
	
		
			
				|  |  |              int count = 0;
 | 
	
		
			
				|  |  |              for(int i = 0;i < GrowthFundCfgArray.Instance.dataArray.Length;i++)
 | 
	
		
			
				|  |  |              {
 | 
	
	
		
			
				|  | @@ -91,6 +95,7 @@ namespace GFGGame
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              _ui.m_txtGiftBag.text = count.ToString();
 | 
	
		
			
				|  |  |              _ui.m_list.numItems = GrowthFundCfgArray.Instance.dataArray.Length;
 | 
	
		
			
				|  |  | +            _ui.m_list.ScrollToView(ScrollToViewIndex,false,true);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          private void OnBtnBuyClick()
 | 
	
		
			
				|  |  |          {
 | 
	
	
		
			
				|  | @@ -155,6 +160,14 @@ namespace GFGGame
 | 
	
		
			
				|  |  |              {
 | 
	
		
			
				|  |  |                  item.m_rewardBtn.target.onClick.Add(OnBtnGetClick);
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | +            if(item.m_rewardBtn.m_c1.selectedIndex == 1)
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +                if(firstToIndex)
 | 
	
		
			
				|  |  | +                {
 | 
	
		
			
				|  |  | +                    ScrollToViewIndex = index;
 | 
	
		
			
				|  |  | +                    firstToIndex = false;
 | 
	
		
			
				|  |  | +                }  
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  |              item.m_rewardBtn.target.data = index + 1;
 | 
	
		
			
				|  |  |              UI_GrowthFundItemUI.ProxyEnd();
 | 
	
		
			
				|  |  |  
 |