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

Commit

Permalink
chore(lib): compile from src using babel and webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchentw committed Nov 11, 2015
1 parent 7f24f3e commit 5a09fab
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,15 +243,19 @@ var TCMention = _mediumEditor2["default"].Extension.extend({

var bottom = _activeMentionAt$getBoundingClientRect.bottom;
var left = _activeMentionAt$getBoundingClientRect.left;
var pageYOffset = this.window.pageYOffset;
var width = _activeMentionAt$getBoundingClientRect.width;
var _window = this.window;
var pageXOffset = _window.pageXOffset;
var pageYOffset = _window.pageYOffset;

this.mentionPanel.style.top = bottom + pageYOffset + "px";
this.mentionPanel.style.left = left + "px";
this.mentionPanel.style.top = pageYOffset + bottom + "px";
this.mentionPanel.style.left = pageXOffset + left + width + "px";
},

updatePanelContent: function updatePanelContent() {
var textContent = this.activeMentionAt.textContent;

this.positionPanel();
this.renderPanelContent(this.mentionPanel, textContent, this.handleSelectMention.bind(this));
},

Expand Down
2 changes: 1 addition & 1 deletion lib/index.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5a09fab

Please sign in to comment.