Skip to content

Commit

Permalink
Light menu positing code, we don't need to rebuild the whole menu eve…
Browse files Browse the repository at this point in the history
…ry time.
  • Loading branch information
Jordan Humphreys committed Aug 18, 2017
1 parent 94a9d05 commit aabdfa4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dist/tribute.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/TributeMenuEvents.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class TributeMenuEvents {
this.tribute.events.click.bind(null, this), false)
window.addEventListener('resize', this.debounce(() => {
if (this.tribute.isActive) {
this.tribute.showMenuFor(this.tribute.current.element, true)
this.tribute.range.positionMenuAtCaret(true)
}
}, 300, false))

Expand Down

0 comments on commit aabdfa4

Please sign in to comment.