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

Android设备,delPanel没有到达最底部 #49

Closed
13244420529 opened this issue Dec 25, 2019 · 29 comments
Closed

Android设备,delPanel没有到达最底部 #49

13244420529 opened this issue Dec 25, 2019 · 29 comments

Comments

@13244420529
Copy link

13244420529 commented Dec 25, 2019

您好,我这现在遇到一个问题,长按多选时删除面板没有到达最底部
荣耀play:
1

mate30:
2

@DaiYz
Copy link
Owner

DaiYz commented Dec 26, 2019

image
文件路径:app -> chat -> del -> index.js 帮我定位下这里的top 具体值是不是有误,目前我没有测试机

@DaiYz
Copy link
Owner

DaiYz commented Dec 26, 2019

你Android是不是开了沉浸式?

@13244420529
Copy link
Author

行,我去看看,是沉浸式

@DaiYz
Copy link
Owner

DaiYz commented Dec 27, 2019

那就是沉浸式Android的导航头有问题,你自己要重新计算下

@DaiYz
Copy link
Owner

DaiYz commented Dec 27, 2019

你计算好HeaderHeight这个属性的值

@13244420529
Copy link
Author

啊啊啊,知道啦
image
我这要计算androidHeaderHeight 就可以了是吧然后传递一下

@DaiYz
Copy link
Owner

DaiYz commented Dec 27, 2019

对的,我例子是从react-navigation的方法里拿的,如果你是沉浸式的话,屏幕高度计算与导航头是不一样的

@13244420529
Copy link
Author

这个我得怎么计算呢,能讲解一下吗,我不是太懂,多谢啦

@DaiYz
Copy link
Owner

DaiYz commented Dec 27, 2019

image
如果你这么写的话就是错的
去掉加号前面的

@13244420529
Copy link
Author

我在模拟器测试
image

真机上
2

@DaiYz
Copy link
Owner

DaiYz commented Dec 27, 2019

以真机为准

@13244420529
Copy link
Author

13244420529 commented Dec 27, 2019

我刚开是用的真机是Android刘海屏的,现在用另一个没有刘海的,但是跟模拟器是一样的

@DaiYz
Copy link
Owner

DaiYz commented Dec 27, 2019

那你要考虑刘海屏幕的计算,自己算下吧

@13244420529
Copy link
Author

嗯嗯,那好的,多谢啦

@DaiYz
Copy link
Owner

DaiYz commented Dec 27, 2019

把你Android高度的代码贴出来看看

@DaiYz
Copy link
Owner

DaiYz commented Dec 27, 2019

也就是说没有刘海屏多减了

@13244420529
Copy link
Author

image

@DaiYz
Copy link
Owner

DaiYz commented Dec 27, 2019

那你打印下这个值,应该是刘海屏与非刘海屏机制不一样

@13244420529
Copy link
Author

我刚才打印了一下,值是一样的

@DaiYz
Copy link
Owner

DaiYz commented Dec 27, 2019

是多少

@13244420529
Copy link
Author

都是56

@13244420529
Copy link
Author

如果想往上移动的话,这个值得大一些吧。

@DaiYz
Copy link
Owner

DaiYz commented Dec 27, 2019

我在改

@DaiYz
Copy link
Owner

DaiYz commented Dec 27, 2019

沉浸式情况下,你点击右下脚的加号,是不是也会出问题

@DaiYz
Copy link
Owner

DaiYz commented Dec 27, 2019

表情面板有问题吗?

@13244420529
Copy link
Author

这个还没发现有什么问题
1

@DaiYz
Copy link
Owner

DaiYz commented Dec 27, 2019

好了,更新到最新版本

@13244420529
Copy link
Author

ok,已经没问题了,多谢啦

@DaiYz
Copy link
Owner

DaiYz commented Dec 27, 2019

刘海屏幕跟普通的都测试了吗?

@DaiYz DaiYz closed this as completed Dec 27, 2019
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