meteor-autocomplete
meteor-autocomplete copied to clipboard
position: "top" misbehaves when $.offsetParent() returns <html> element
The fix for me was to just add a relatively position div somewhere above the inputAutocomplete. I imagine the best fix would be for {{> inputAutocomplete}} to do that automatically.
Before:
<html>
{{> inputAutocomplete settings=settings id="msg" class="input-xlarge" placeholder="Chat..."}}
</html>
after:
<html>
<div style="position: relative">
{{> inputAutocomplete settings=settings id="msg" class="input-xlarge" placeholder="Chat..."}}
</div>
</html>
If this doesn't make sense, I can try to create a small reproducible example, but I'm new to meteor, and not sure what the best way to share something like that is.
Ah, makes sense. I don't think I've ever used this in a setting where there wasn't an absolutely positioned div as a parent.