diff --git a/src/gameobjects/components/Size.js b/src/gameobjects/components/Size.js index 33dcd107c..5b324898e 100644 --- a/src/gameobjects/components/Size.js +++ b/src/gameobjects/components/Size.js @@ -125,6 +125,14 @@ var Size = { this.width = frame.realWidth; this.height = frame.realHeight; + var input = this.input; + + if (input && !input.customHitArea) + { + input.hitArea.width = this.width; + input.hitArea.height = this.height; + } + return this; },