Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LoopListView和LoopGridView重复加载问题 #60

Open
AlanWeekend opened this issue Nov 21, 2023 · 2 comments
Open

LoopListView和LoopGridView重复加载问题 #60

AlanWeekend opened this issue Nov 21, 2023 · 2 comments

Comments

@AlanWeekend
Copy link
Contributor

AlanWeekend commented Nov 21, 2023

LoopListView和LoopGridView会重复调用SetItemData。#56
上一次pr注释了一部分逻辑。不会重复调用了,但新的数据个数小于原数据个数时不会触发SetItemData。
这块比较复杂,我这边用fancyscrollview实现了。fancyscrollview和uiwidget不太好做兼容,就不提pr了

@gumcstronger
Copy link

LoopListView和LoopGridView会重复调用SetItemData。#56 上一次pr注释了一部分逻辑。不会重复调用了,但新的数据个数小于原数据个数时不会触发SetItemData。 这块比较复杂,我这边用fancyscrollview实现了。fancyscrollview和uiwidget不太好做兼容,就不提pr了

你使用UILoopListWidget时有没有遇到GetItem中获取不到数据,我看UILoopListWidget的m_items并没有任何地方调用到,而UIBase中var item = GetItem(preIndex) as IListSelectItem;肯定是null,所以item.SetSelected()永远不会调用到。这是bug么,还是我的使用姿势不对

@ALEXTANGXIAO
Copy link
Owner

是bug,GetItem相关问题已修正。重复调用SetItemData问题已标记,有空修复好我会close这个issue。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants