Skip to content

Commit

Permalink
Merge pull request #79 from makc/patch-1
Browse files Browse the repository at this point in the history
AutoComplete: use the same text offset for suggestion items
  • Loading branch information
FlorianLudwig authored Jan 29, 2017
2 parents 645aadc + d7f8ca4 commit 83a8a5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controls/AutoComplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ AutoComplete.prototype.createSuggestionItem = function (text, width, height) {
container.addChild(background);
}

itemText.x = 0;
itemText.y = 5;
itemText.x = this.textOffset.x;
itemText.y = this.textOffset.y;

container.hitArea = new PIXI.Rectangle(0, 0, width, height);

Expand Down

0 comments on commit 83a8a5b

Please sign in to comment.