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

Padding breaks autowidth in Vue 3 #59

Open
OwenVey opened this issue Mar 17, 2022 · 1 comment
Open

Padding breaks autowidth in Vue 3 #59

OwenVey opened this issue Mar 17, 2022 · 1 comment

Comments

@OwenVey
Copy link

OwenVey commented Mar 17, 2022

Using the v2 branch, whenever I add left/right padding, the width is not accounting for it and therefore cuts off text.
image

@syropian
Copy link
Owner

Hey there, thanks for the report.

Do you have box-sizing: border-box applied to your input (implicitly or explicitly)? As long as you do, the width should display correctly, as the plugin does take padding into account (see https://github.com/syropian/vue-input-autowidth/blob/v2/lib/directive.ts#L92-L93)

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