Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #258 from atom-community/make-autocomplete-heigher…
Browse files Browse the repository at this point in the history
…-zindex-than-linter

Ensure that css can modify z-index, and put autocomplete at a slightly h...
  • Loading branch information
park9140 committed Feb 11, 2015
2 parents 4cf7dca + 6e20a2e commit 49b5215
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/suggestion-list-element.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ class SuggestionListElement extends HTMLElement

createdCallback: ->
@subscriptions = new CompositeDisposable
@classList.add('popover-list', 'select-list', 'autocomplete-plus', 'autocomplete-suggestion-list')
@classList.add('popover-list', 'select-list', 'autocomplete-suggestion-list')
@subscriptions.add(atom.config.observe('autocomplete-plus.maxSuggestions', => @maxItems = atom.config.get('autocomplete-plus.maxSuggestions')))
@registerMouseHandling()

attachedCallback: ->
# TODO: Fix overlay decorator to in atom to apply class attribute correctly, then move this to overlay creation point.
@parentElement.classList.add('autocomplete-plus')
@addActiveClassToEditor()
@renderList() unless @ol
@itemsChanged()
Expand Down
4 changes: 3 additions & 1 deletion styles/autocomplete.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@import "ui-variables";

atom-overlay.autocomplete-plus {
z-index: 5;
}
autocomplete-suggestion-list.select-list.popover-list {
width: auto;
display: inline-block;
Expand Down

1 comment on commit 49b5215

@basarat
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works beautifully. Thanks!

Please sign in to comment.