Skip to content

Commit da617f3

Browse files
committed
Update displayOriginX, displayOriginY after size changed
1 parent 77859b1 commit da617f3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/gameobjects/zone/Zone.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ var Zone = new Class({
165165
this.width = width;
166166
this.height = height;
167167

168+
this.updateDisplayOrigin();
169+
168170
var input = this.input;
169171

170172
if (resizeInput && input && !input.customHitArea)

0 commit comments

Comments
 (0)