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

AdaptiveSize勾选后无法还原问题 #15

Open
LogicCoder opened this issue May 9, 2020 · 6 comments
Open

AdaptiveSize勾选后无法还原问题 #15

LogicCoder opened this issue May 9, 2020 · 6 comments

Comments

@LogicCoder
Copy link

AdaptiveSize勾选后将节点反复变大,效果正确,将节点反复变小,效果也正确,如果先变大再变小,会出现变小后节点占据的面积不变,只是节点的尺寸变小的问题

@LogicCoder
Copy link
Author

另外被放大过的item即使还原后,在滚动时重新生成的item尺寸和位置会和放大的一样

@gh-kL
Copy link
Owner

gh-kL commented Jun 13, 2020

的确存在这个问题,我还在思考中👀

@suyihao37
Copy link

AdaptiveSize勾选后将节点反复变大,效果正确,将节点反复变小,效果也正确,如果先变大再变小,会出现变小后节点占据的面积不变,只是节点的尺寸变小的问题

占据面积不变,应该是这个面积是根据节点尺寸对齐吧,你把widget的对齐模式改为always试试。

@BingzhaoChen
Copy link

的确存在这个问题,我还在思考中👀

image
这里判断不应该与_itemSize判断的吧。是不是应该与上次节点的size判断

@SmartHero0707
Copy link

很好解决 加个_cacheSize 专门用来存放上次的size 用这个_cacheSize做比较就行

@lxt610
Copy link

lxt610 commented Oct 7, 2024 via email

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

6 participants