native-docs
native-docs copied to clipboard
nvue安卓全屏模式下,input组件adjust-position:false无效
- 这个问题之前已经出现过(issues-719),不知道是否有关联。
复现步骤
- 使用vue-cli方法创建项目。
- 使用全屏模式plus.navigator.setFullscreen(true)。
- 在HbuilderX,uni-app编译模式下nvue安卓input adjust-position: false配置无效,页面依然会上推。
<template>
<view class="box">
<text>检测页面是否上推</text>
<view class="footer">
<input :adjust-position="false" placeholder="请输入评论" />
</view>
</view>
</template>
<script>
plus.navigator.setFullscreen(true)
export default {
data() {
return {};
}
}
</script>
<style lang="scss" scoped>
.box {
/* #ifndef APP-NVUE */
display: flex;
/* #endif */
flex: 1;
background-color: #fdfff0;
}
.footer {
position: fixed;
left: 0;
bottom: 0;
width: 750rpx;
height: 55rpx;
background-color: #fff671;
}
</style>
预期结果 input聚焦时,页面不往上推。
实际结果 input聚焦时,页面被上推。
系统信息:
- 发行平台:Android
- 操作系统:Android 5.1
- HBuilderX版本:2.6.8.20200330
- uni-app版本:2.0.0-26820200330001
- 设备信息:OPPO R9m,ColorOs版本V3.0
补充信息 IOS下正常,VUE页面正常,就是NVUE页面无效。
Android 6.0 三星验证没有问题,换个设备是否正常
Android 6.0 三星验证没有问题,换个设备是否正常
华为 Android 6.0.1 一样有问题
设置setFullscreen确实在部分手机存在adjust-position="false"失效。bug已确认 目前没有好的解决方案,建议不要设置setFullscreen(true)
请问有任何消息反馈吗?@st-dc @dcloudhdx @ArrayDC