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

Width adjust in chrome #154

Open
pawelczak opened this issue Nov 25, 2015 · 2 comments
Open

Width adjust in chrome #154

pawelczak opened this issue Nov 25, 2015 · 2 comments

Comments

@pawelczak
Copy link
Owner

Width adjust function gives incorrect values in chrome.

To reproduce this error:

  • bootstrap styles
  • input text field need to be inside element with class form-control
@steventhanna
Copy link

I was having the same issue as you have been having...
At least for my use, I believe that I just fixed the issue. I configured my options as such:

var options = {
  [...]
  adjustWidth: false,
  [...]
}

The relevant HTML

<form>
  <div class="form-group">
    <label for="autocomplete-ajax">Name</label>
    <input type="text" id="autocomplete-ajax" placeholder="John Smith" class="form-control"/>
  </div>
</form>

The adjustWidth flag allows my responsive styling to take control over both the input and the resulting autocomplete popup, resulting in more natural styling.

If I may suggest...
The only way I stumbled around this change was digging through the configuration.js file, in which I noticed a the flag. Unless I missed it, a better documented options section on this plugins website would go a long way.

@caiorg
Copy link

caiorg commented Sep 28, 2016

@steventhanna that did the trick! Thx!

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

3 participants