mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-12 04:13:13 +08:00
parent
24e373a812
commit
75c365aa2c
@ -138,7 +138,7 @@ export default function calculateNodeHeight(
|
|||||||
|
|
||||||
if (minRows !== null || maxRows !== null) {
|
if (minRows !== null || maxRows !== null) {
|
||||||
// measure height of a textarea with a single row
|
// measure height of a textarea with a single row
|
||||||
hiddenTextarea.value = '';
|
hiddenTextarea.value = ' ';
|
||||||
let singleRowHeight = hiddenTextarea.scrollHeight - paddingSize;
|
let singleRowHeight = hiddenTextarea.scrollHeight - paddingSize;
|
||||||
if (minRows !== null) {
|
if (minRows !== null) {
|
||||||
minHeight = singleRowHeight * minRows;
|
minHeight = singleRowHeight * minRows;
|
||||||
|
Loading…
Reference in New Issue
Block a user