textarea在页面底部时,调起键盘后textarea完全被遮挡!
textarea官方实例,修改 <viewclass=“page-section”>为<viewclass=“page-section”style=‘margin-top:800px;’>后,textarea处于页面底部,textarea获取焦点激活键盘,键盘会把整个textarea遮挡,无法看见输入的内容。
<view class="page-body">
<view class="page-section" style='margin-top:800px;'>
<view class="page-section-title">输入区域高度自适应,不会出现滚动条view>
<view class="textarea-wrp">
<textarea bindblur="bindTextAreaBlur" auto-height />
view>
view>
<view class="page-section">
<view class="page-section-title">这是一个可以自动聚焦的textareaview>
<view class="textarea-wrp">
<textarea auto-focus="true" style="height: 3em" />
view>
view>
view>
后来加上了cursor-spacing ,发现在textarea不起作用,不单cursor-spacing不起作用,
show-confirm-bar 也是不起作用的。
<textarea style=“height: 3em” placeholder=“我要对此次活动服务评价…” show-confirm-bar=‘false’ cursor-spacing=“120”/>
后来经过我仔细检查后,发现是show-confirm-bar的“”完成“”栏,遮挡住了光标,上截图。
仔细查看上图,会发现完成栏遮挡住了光标。
图片可以隐约看到光标处的文字。
测试机型华为荣耀6X,android版本7.0 ,EMUI版本 5.0.2。
在线等解,折腾2天了 还是没有解决!
后又经过测试,把 <viewclass=“page-section”style=‘margin-top:800px;’> 修改为 <viewclass=“page-section”style=‘margin-top:200px;’> textarea 不在底部的时候,cursor-spacing是起作用的,但是show-confirm-bar无论怎么设置,都没有用。
