Skip to content

Commit

Permalink
fix(ui5-textarea): prevent page height from growing on large input
Browse files Browse the repository at this point in the history
issue: #8082
  • Loading branch information
ndeshev committed Jan 16, 2024
1 parent 1a27292 commit 811dde0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/main/src/themes/TextArea.css
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,15 @@
line-height: var(--_ui5_textarea_line_height);
visibility: hidden;
width: 100%;
max-height: 94vh;
min-height: calc((var(--_textarea_rows) * var(--_ui5_textarea_line_height)) * var(--sapFontSize) + var(--_ui5_textarea_padding_top) + var(--_ui5_textarea_padding_bottom));
word-break: break-all;
padding-top: var(--_ui5_textarea_padding_top);
padding-bottom: var(--_ui5_textarea_padding_bottom);
font-size: var(--sapFontSize);
font-family: "72override", var(--sapFontFamily);
white-space: pre-wrap;
overflow-y: auto;
}

:host([style*="height"]) .ui5-textarea-root,
Expand Down

0 comments on commit 811dde0

Please sign in to comment.