【公会援助】每次点击援助,列表都会重新置顶显示

dev_chengFeng
zhangqiang 2021-04-22 15:31:03 +08:00
parent 3b59ae09ec
commit 2b122d7fee
2 changed files with 3 additions and 1 deletions

View File

@ -135,7 +135,7 @@ function this.ShowPanelData()
this.aidNumText.text = Language[10987]..curAidNum.."/"..guildHelpConfig[1].RecourseTime[1].."" this.aidNumText.text = Language[10987]..curAidNum.."/"..guildHelpConfig[1].RecourseTime[1]..""
this.ScrollView:SetData(allMyAidData, function (index, go) this.ScrollView:SetData(allMyAidData, function (index, go)
this.SingleHelpDataShow(go, allMyAidData[index]) this.SingleHelpDataShow(go, allMyAidData[index])
end,true,true) end,false,true)
end end
function this.SingleHelpDataShow(go,data) function this.SingleHelpDataShow(go,data)
local isHave = data.type ~= nil local isHave = data.type ~= nil

View File

@ -320,8 +320,10 @@ function this:SetData(dataList, updateFunc, noTop, noAnim)
-- 判断是否回到顶部,否则保持不动 -- 判断是否回到顶部,否则保持不动
if noTop then if noTop then
local oldPosY = self.dragGOTran.anchoredPosition.y
local showIndex = self:CalShowIndex() local showIndex = self:CalShowIndex()
self:SetShow(showIndex) self:SetShow(showIndex)
self.dragGOTran.anchoredPosition = Vector2.New(0, oldPosY)
else else
self:SetShow(1) self:SetShow(1)
end end