meteor-autocomplete icon indicating copy to clipboard operation
meteor-autocomplete copied to clipboard

position: "top" misbehaves when $.offsetParent() returns <html> element

Open jfly opened this issue 11 years ago • 1 comments

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.

jfly avatar Oct 13 '14 03:10 jfly

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.

mizzao avatar Oct 13 '14 04:10 mizzao