【bug】修复scrollview修改导致引导报错的问题

dev_chengFeng
JieLing 2020-12-30 14:41:27 +08:00 committed by zhangqiang
parent 4b4049e938
commit 1b77aec298
1 changed files with 1 additions and 1 deletions

View File

@ -388,7 +388,6 @@ function this:SetShow(showIndex)
if not item.go then
local go = newObject(self.item)
go.name = "item"..index
go.transform:SetParent(self.dragGO.transform)
go.transform.localScale = Vector3.one
go.transform.localPosition = Vector3.zero
@ -404,6 +403,7 @@ function this:SetShow(showIndex)
end
if item.go then
item.go.name = "item"..index
if self.dragType == 1 then
item.tran.anchoredPosition = Vector2.New(self.itemWidth * (j-1), (0.5-i - self.dataLine) * self.itemHeight)
else