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

聊天场景时,列表数据为空时,列表被顶出屏幕区域 #39

Open
gancao297871092 opened this issue Jul 18, 2024 · 3 comments

Comments

@gancao297871092
Copy link

gancao297871092 commented Jul 18, 2024

聊天场景时,列表数据为空时,列表被顶出屏幕区域,此时发送消息,如果键盘不失去焦点,会看不见最顶上的最新消息,希望同微信聊天交互一样

@weiningtry7
Copy link

可以用view包裹list,设置paddingBottom。

@gancao297871092
Copy link
Author

可以用view包裹list,设置paddingBottom。

不行哎,整个视图都顶出去了,如果此时消息为空,发送第一条消息的时候,会出现在视图外

@weiningtry7
Copy link

translateY作用在底部工具栏的视图上,做y轴的向上偏移。paddingBottom作用在消息list的父视图上。

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

2 participants