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

Wrong width on Input with type number #66

Closed
blockiindahood opened this issue Apr 2, 2023 · 4 comments
Closed

Wrong width on Input with type number #66

blockiindahood opened this issue Apr 2, 2023 · 4 comments

Comments

@blockiindahood
Copy link

Bildschirm­foto 2023-04-02 um 17 38 06

@blockiindahood blockiindahood changed the title Wrong with on Input with type number Wrong width on Input with type number Apr 2, 2023
@syropian
Copy link
Owner

syropian commented Apr 2, 2023

Does passing a custom comfortZone value help?

<input
    type="text"
    v-model="msg"
    v-autowidth="{
      comfortZone: '20px', // adjust this to fit your needs
    }"
  />

@blockiindahood
Copy link
Author

No, sadly doesn't work!

@syropian
Copy link
Owner

You should be able to use a combination of the minWidth and comfortZone options to achieve what you need. You can see an example here — https://stackblitz.com/edit/vue-hyxw37?file=src/App.vue

Let me know if that's enough to solve issue!

@blockiindahood
Copy link
Author

That solved it, yes!
Thank you :)

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