Skip to content
This repository has been archived by the owner on Nov 22, 2021. It is now read-only.

Commit

Permalink
Create overlayStyle object
Browse files Browse the repository at this point in the history
Create overlayStyle object to use in ng-style in template
  • Loading branch information
SamarRizvi committed Aug 11, 2017
1 parent a66a547 commit 267898e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/auto-complete.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ export default function AutocompleteDirective($document, $timeout, $sce, $q, tag
if(options.overlay) {
self.overlay = true;
self.width = element.closest('tags-input').width();
self.overlayStyle = {
position: 'fixed',
width: self.width
}
}
if (options.selectFirstMatch) {
self.select(0);
Expand Down

0 comments on commit 267898e

Please sign in to comment.