wangguan
2020-12-02 d7d30d2e665aa451f8bd3ea3c8b15391b765ccc3
Assets/Tools/EnhancedScroller v2/Plugins/EnhancedScroller.cs
@@ -414,7 +414,7 @@
                return _activeCellViewsStartIndex % NumberOfCells;
            }
        }
        /// <summary>
        /// This is the last data index showing in the scroller's visible area
        /// </summary>
@@ -478,6 +478,10 @@
                var go = Instantiate(cellPrefab.gameObject);
                cellView = go.GetComponent<EnhancedScrollerCellView>();
                cellView.transform.SetParent(_container);
                RectTransform rt = go.GetComponent<RectTransform>();
                rt.anchoredPosition3D = new Vector3(rt.anchoredPosition3D.x, rt.anchoredPosition3D.y, 0);
                rt.localEulerAngles = Vector3.zero;
            }
            return cellView;
@@ -1407,6 +1411,7 @@
            else
                go.AddComponent<HorizontalLayoutGroup>();
            _container = go.GetComponent<RectTransform>();
            _container.localEulerAngles = Vector3.zero;
            // set the containers anchor and pivot
            if (scrollDirection == ScrollDirectionEnum.Vertical)
@@ -1566,7 +1571,7 @@
            _RefreshActive();
        }
        /// <summary>
        /// This is fired by the tweener when the snap tween is completed
        /// </summary>