Meteor-Community-Packages / Meteor-Community-Packages/meteor-autocomplete
position: "top" misbehaves when $.offsetParent() returns <html> element
- Dominant language
- CoffeeScript
- Stars
- 350
- Forks
- 106
- PR merge metrics
- No merged PRs in 30d
Description
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:
``` javascript
{{> inputAutocomplete settings=settings id="msg" class="input-xlarge" placeholder="Chat..."}}
```
after:
``` javascript
{{> inputAutocomplete settings=settings id="msg" class="input-xlarge" placeholder="Chat..."}}
```
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.
Contributor guide
Research direction
Reproduce the inputAutocomplete case where $.offsetParent() returns an element, using the before and after examples in the issue. Trace the positioning logic and verify that the top position works without requiring a relatively positioned wrapper.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- coffeescript, javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100