-
Notifications
You must be signed in to change notification settings - Fork 175
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
Width problem for placeholder #73
Comments
I noticed this happening when my element was originally being rendered with |
I'm seeing this issue as well, both when a parent is initially rendered with |
If someone can provide a link (e.g. to codesandbox) or adds an example that reproduces this I'd be happy to take a look at it |
@JedWatson: From what I can tell, the issue is due to input styles only being set in Happy to submit a PR for this, just wasn't sure if there was a specific reason you were only setting the styles once. |
Hello @JedWatson I have the same problem. Here you can find some of my implementation. I have 2 lists that used the same method to render a input. They Both called renderColumn
Here you can see, first line is not ok, but when i click on "Nouveau" button, the new line is ok. Don't know if this can help you. But when i move my mouse hover the copy icon, then the autosize input take the good size. (my hover method only change the cursor of the mouse to display a hand cursor) Hope it will help. |
I just created a new NPM module please check it out:
|
I'm using AutosizeInput with TagsInput and these inputProps:
The props that are actually passed to AutosizeInput are:
My problem: on initial render, when 'value' is empty, the input box is only a couple of pixels wide. I believe this is because the computation of 'sizerValue' in the AutosizeInput render function does not consider the placeholder.
As a temporary fix, I added the following. But it's a hack because (a) it does not consider that the font could be wider or narrower, and (b) it defeats the autosizing function for tags that are shorter than 90 px.
minWidth: 90
The text was updated successfully, but these errors were encountered: