Skip to content

Commit

Permalink
theshock#59 Фикс measureText не корректно рассчитывал длину текста
Browse files Browse the repository at this point in the history
  • Loading branch information
FireVolkhov committed Mar 17, 2015
1 parent 32b0c14 commit c0cb29b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Context/Text.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ LibCanvas.declare( 'LibCanvas.Context.Text', {
},
/** @returns {object} */
measureText : function (args) {
return this.ctx2d.measureText.call(this.ctx2d, args)
return this.ctx2d.measureText.apply(this.ctx2d, args)
},
/** @returns {Context2D} */
text : function (cfg) {
Expand Down
2 changes: 1 addition & 1 deletion libcanvas-full-compiled.js
Original file line number Diff line number Diff line change
Expand Up @@ -3267,7 +3267,7 @@ LibCanvas.declare( 'LibCanvas.Context.Text', {
},
/** @returns {object} */
measureText : function (args) {
return this.ctx2d.measureText.call(this.ctx2d, args)
return this.ctx2d.measureText.apply(this.ctx2d, args)
},
/** @returns {Context2D} */
text : function (cfg) {
Expand Down

0 comments on commit c0cb29b

Please sign in to comment.