mirror of
https://github.com/konvajs/konva.git
synced 2025-05-03 04:13:55 +08:00
fixed typo introduced with search/replace
This commit is contained in:
parent
4c521317ff
commit
6e3bae6b2d
2
dist/kinetic-core.js
vendored
2
dist/kinetic-core.js
vendored
@ -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
|
||||
|
2
dist/kinetic-core.min.js
vendored
2
dist/kinetic-core.min.js
vendored
File diff suppressed because one or more lines are too long
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user