Skip to content

Commit aad2ab3

Browse files
committed
fixed a typo;
1 parent a3502eb commit aad2ab3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pixi/display/DisplayObjectContainer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ PIXI.DisplayObjectContainer.prototype._renderCanvas = function (renderSession) {
577577
Object.defineProperty(PIXI.DisplayObjectContainer.prototype, 'width', {
578578

579579
get: function() {
580-
return this.getLocalBounds().width + this.scale.x;
580+
return this.getLocalBounds().width * this.scale.x;
581581
},
582582

583583
set: function(value) {

0 commit comments

Comments
 (0)