Skip to content

Commit

Permalink
Merge pull request #92 from judev-forks/fix-contenteditable-left
Browse files Browse the repository at this point in the history
fix horizonal position on contentEditable elements
  • Loading branch information
yuku committed Jul 1, 2014
2 parents 2d81b88 + 58f33d7 commit 12b2d8f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jquery.textcomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@
range.deleteContents();
$node = $(node);
position = $node.offset();
position.left -= this.$el.offset().left;
position.top += $node.height() - this.$el.offset().top;
}
dir = this.$el.attr('dir') || this.$el.css('direction');
Expand Down

0 comments on commit 12b2d8f

Please sign in to comment.