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

useTextareaAutosize adds a scrollbar for elements with css styles border and box-sizing: border-box #3973

Open
7 tasks done
jmalatia opened this issue May 15, 2024 · 1 comment

Comments

@jmalatia
Copy link

Describe the bug

When useTextareaAutosize is used on a textarea with css styles border and box-sizing: border-box, a scrollbar is displayed.

Reproduction

https://play.vueuse.org/#N4IgDghgxg1hDmBTAziAXAbVAOwgW0XRADcBXRAWgBNE8BLEAGhGQHtSAnKQtEU7MDHhMQNZFA50wAFzqtsRAGrkABABFadFQAoAFhAA2AMxV1sKgGIdE2KLoCUp5CogqaxRAdZgz8FaVkDOmkATxcDLwB3ZxD2FWlWFUjJaUQVAFVsOg8OZEMVZTSAGToAIw4ISRQVI1YOAtUAJhUAMhUAZhFOAyJdaWkwZDQAemH+QXgAOihWPGGyShp6YaDS4bMaAA9JvAArVABfRhx8HhAAAQXSZERh5H1rKhE2Tm4icaERMQkpWXkiADKD0QVAaiHSN38gWCdBQky6HB6vD6AyGow+Uxmc0u5Gut3ulRB5wAjAAGSbEyak9bYLY7fYgI4nAhEHGIPHDGbWZ7sLhnDFfFA-GRyBS8ADCrAiiCgf3MrBMKBu2Fk+UKKkleDArGQMPkGWhshQCKRIBRgxGYwEQmms2GbI5XMQJPJlOpG0Q2z2hwAuswjHQDMa0KAAIJgMCTBboUCpLUGCCpIgAHlSm2khIgAB1zCo89YjABeLMgNMZ6zZkA5vN54gUPCsGgGYsgMxgAIl6s1qAJ5DIFvWXUAL0o2HkiE7ubzYAT3F0UpoHBbAHV9NIAOTOfWxTgqei0gD8k5rKmQoSDLdKdUXaA6YE2p6ldFBjwA3Cor5sKMPfLerxxFwoT930iZ9pF0W8yVJABSd8gmwShdEQOh4D6SDJgAVlfY8VGGAA+HNnmFaQiDoLU6mkFRgH8G4ABVPXLRAIFDAIdToEcVAOGoOFmFR1wdG5OTqRB1xzHMZmwM8qPiBjM0YUwBACTiVELGjEHo9NMxYhJh0QbRgAOexCKOEBJWvMxE0QKNyBjUtaBnSyUyobIu1qFUWwbMccNKeAWyCVDpAoDDSVJNxKhgNAqHCoKQpwowg02FsAD8VBmAwcLLFtuBVRAOBwsAW0abzr1ygd2FpEFJwI3Nk2QSBzEyksABZNnSkA8OAajiEMVQDgOZM7nq6q81q+qZPTFtkDwMKOAi-y+goABOEKZoi7xoGCEIYpLPcW0Cor2oAWXYSFOpUBNSk8Tj+sGiBsGqgbnOIPCiMkGQiBoAMEIABR4wZ9K7C7PFvAFpEkbB4EYLtuoMchbwAOVIPBLo4KHsEMxk+qAA

System Info

any, playground

Used Package Manager

npm

Validations

@jeferson-sb
Copy link

@jmalatia This is due to the border added to textarea element + the dynamic height given from VueUse, you can avoid the scrollbar by using overflow: clip;

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

No branches or pull requests

2 participants