Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ignore padding when calculating content height #8130

Merged
merged 3 commits into from
Nov 12, 2024

Conversation

sissbruecker
Copy link
Contributor

The auto-sizing mechanism in vaadin-text-area incorrectly adds the padding of the native textarea to the calculated size of the content, thus increasing the size of the component (or the scrollable area) by that padding once it starts to grow. This removes the padding from the calculated content size.

Currently only noticable in the Material theme which applies a padding on the native textarea. This should also help with #1399 where calculating a max-height based on a number of rows needs to align with the auto-sizing mechanism.

Copy link

sonarcloud bot commented Nov 12, 2024

@sissbruecker sissbruecker merged commit c5d5afa into main Nov 12, 2024
9 checks passed
@sissbruecker sissbruecker deleted the fix/textarea-auto-size-ignore-padding branch November 12, 2024 08:55
@web-padawan web-padawan removed their request for review November 12, 2024 13:37
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.6.0.alpha4 and is also targeting the upcoming stable 24.6.0 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants