Element: [Bug Report] el-input textarea autosize = true (or {min: 4}) When there is more content, scrollbars still appear

Created on 4 Mar 2019  ·  7Comments  ·  Source: ElemeFE/element

Element UI version

2.5.4

OS/Browsers version

Chrome 68.0.3423.2(正式版本) (32 位)

Vue version

2.6.8

Reproduction Link

https://jsfiddle.net/yflin/0n8xwsqz/5/

Steps to reproduce

粘贴15行以上文本内容,时滚动条还是出现了

What is Expected?

不出现滚动条

What is actually happening?

出现滚动条

All 7 comments

Translation of this issue:

Element UI version

2.5.4

OS/Browsers version

Chrome 68.0.3423.2 (official version) (32 bits)

Vue version

2.6.8

Reproduction Link

https://jsfiddle.net/yflin/0n8xwsqz/5/

Steps to reproduce

When you paste more than 15 lines of text, the scrollbar still appears

What is Expected?

No scrollbars

What is actually happening?

A scroll bar appears

或是设定了 "{ minRows: 8, maxRows 10000 }“,但一次 粘贴一个较大的文本时(几百行),也会出现滚动条

你的例子无法重现;你看到的滚动条可能是外围元素的滚动条。

您好,您的问题解决了吗,我也遇到了,windows下滚动条会出现,当粘贴一定行数的时候

后来没找到解决方案

| |
yflin
|
|
邮箱:[email protected]
|
On 05/08/2019 22:08, 饕餮 wrote:

您好,您的问题解决了吗,我也遇到了,windows下滚动条会出现,当粘贴一定行数的时候


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@luckyCao
你确定试过?

设置textarea 样式overflow-y: hidden似乎可以解决这个问题

Was this page helpful?
0 / 5 - 0 ratings