【bug】修复scrollview修改导致引导报错的问题
parent
4b4049e938
commit
1b77aec298
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue