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

聊天框功能时没有内容,contentView也滚动了 #29

Open
princeSmall opened this issue Mar 5, 2024 · 2 comments
Open

聊天框功能时没有内容,contentView也滚动了 #29

princeSmall opened this issue Mar 5, 2024 · 2 comments

Comments

@princeSmall
Copy link

实现聊天框功能时,没有内容或有少量内容时content也滚动了,导致content被遮挡

@listenzz
Copy link
Collaborator

listenzz commented Mar 6, 2024

你好,我们提供的例子,布局大概是下面这个样子

<KeyboardInsetsView>
  <ScrollView />
  <ChatBox />
</KeyboardInsetsView>

动画作用在 KeyboardInsetsView 上,所以 ScrollView 也会跟着移动。

你可以移除 KeyboardInsetsView 上的动画,将动画分别作用在 ScrollView 和 ChatBox 上,根据内容高度,适当调整 ScrollView 的移动距离。

@gancao297871092
Copy link

实现聊天框功能时,没有内容或有少量内容时content也滚动了,导致content被遮挡

你的问题解决了吗?

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