From dc0e8a38a7013908c6e1abc27a6b10a8ef2b00a1 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期二, 07 四月 2026 17:28:30 +0800
Subject: [PATCH] Merge branch 'master' of http://mobile.secondworld.net.cn:10010/r/Project_SG_scripts

---
 Main/System/Scroll/ScrollerController.cs |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/Main/System/Scroll/ScrollerController.cs b/Main/System/Scroll/ScrollerController.cs
index d86ae6c..6e3db1d 100644
--- a/Main/System/Scroll/ScrollerController.cs
+++ b/Main/System/Scroll/ScrollerController.cs
@@ -367,11 +367,13 @@
             if (horizontal)
             {
                 
-                rect.sizeDelta = rect.sizeDelta.SetX(Math.Min(jiaMiddleWithMaxSize, (m_CellHeaderPrefab.height + m_Scorller.spacing) * _data.Count - m_Scorller.spacing));
+                rect.sizeDelta = rect.sizeDelta.SetX(Math.Min(jiaMiddleWithMaxSize, (m_CellHeaderPrefab.height + m_Scorller.spacing) * _data.Count - m_Scorller.spacing +
+                m_Scorller.padding.right + m_Scorller.padding.left));
             }
             else if (vertical)
             {
-                rect.sizeDelta = rect.sizeDelta.SetY(Math.Min(jiaMiddleWithMaxSize, (m_CellHeaderPrefab.height + m_Scorller.spacing) * _data.Count - m_Scorller.spacing));
+                rect.sizeDelta = rect.sizeDelta.SetY(Math.Min(jiaMiddleWithMaxSize, (m_CellHeaderPrefab.height + m_Scorller.spacing) * _data.Count - m_Scorller.spacing +
+                m_Scorller.padding.top + m_Scorller.padding.bottom));
             }
             if (rect.sizeDelta.x < jiaMiddleWithMaxSize)
             {
@@ -400,6 +402,7 @@
         lastDataCnt = _data.Count;
     }
 
+    //index 鏄寜addcell鐨勯『搴忥紝鍖呭惈鎵�鏈夊眰绾�
     public void JumpIndex(int index)
     {
         if (!inited)

--
Gitblit v1.8.0