alibaba / weex

A framework for building Mobile cross-platform UI
https://weexapp.com/
Apache License 2.0
18.27k stars 2.13k forks source link

[iOS]textarea组件,rows设置成100,获取焦点的时候会顶出屏幕 weex version is 0.9.5 #3278

Closed yuditxj closed 2 years ago

yuditxj commented 2 years ago

Describe the bug

To Reproduce

Environment

Expected behavior

获取焦点时焦点所在的位置超出了屏幕最上方

Screenshots

Additional context

Txink commented 2 years ago

试下更新到最新版本,0.30.0

yuditxj commented 2 years ago

也是依然有问题

Txink commented 2 years ago
<template>
  <textarea class="text" rows="100"></textarea>
</template>

<style scoped>
.text {
  background-color: blue;
  width: 500px;
  height: 500px;
}
</style>

我试了下OK的,超出屏幕,我怀疑和你ViewController有关,你需要确保WXRootView是在屏幕内,没有被导航栏部分挡住