fixed typo introduced with search/replace

This commit is contained in:
Eric Rowell 2012-07-01 16:29:15 -07:00
parent 4c521317ff
commit 6e3bae6b2d
3 changed files with 3 additions and 3 deletions

View File

@ -3994,7 +3994,7 @@ Kinetic.Text.prototype = {
* get box width
*/
getBoxWidth: function() {
return this.attrs.width === 'auto' ? this.getTextWidboxWidths.padding * 2 : this.attrs.width;
return this.attrs.width === 'auto' ? this.getTextWidth() + this.attrs.padding * 2 : this.attrs.width;
},
/**
* get box height

File diff suppressed because one or more lines are too long

View File

@ -125,7 +125,7 @@ Kinetic.Text.prototype = {
* get box width
*/
getBoxWidth: function() {
return this.attrs.width === 'auto' ? this.getTextWidboxWidths.padding * 2 : this.attrs.width;
return this.attrs.width === 'auto' ? this.getTextWidth() + this.attrs.padding * 2 : this.attrs.width;
},
/**
* get box height