Results 97 comments of wangzhijun

I have this problem too

Is there a solution?

好好看看例子,琢磨一下,你这些都不算问题...

你使用最新的代码测试的吗?最近一版我又最了多个容错处理

那不至于啊 你调试一下你那里获取的胶囊信息,发这里我看一下?

//取值为0的情况 if (!rect.width) { throw 'getMenuButtonBoundingClientRect error'; } 上方这段代码改成下边这样试试 if (!rect.width || !rect.top || !rect.left) { throw 'getMenuButtonBoundingClientRect error'; } 没想到这款机子胶囊信息这么奇葩

if (!rect.width || !rect.top || !rect.left || !rect.height) { throw 'getMenuButtonBoundingClientRect error'; } 把高度的判断也加进去

导航条默认会有一个占位高度的,你这个我不知道什么情况导致默认高度没了,你测下其他手机.是不是这个手机的问题

![image](https://user-images.githubusercontent.com/18524956/69205569-45555e80-0b85-11ea-93d1-5e6bde2ecc40.png) 我这里没问题啊,你先查查什么问题导致的

你好好参考一下demo 这个问题提过的人都解决了,一般都参数搞错了