Fix ScaleManager reference to the parent element#467
Fix ScaleManager reference to the parent element#467pantoninho wants to merge 1 commit intophaserjs:masterfrom pantoninho:master
Conversation
|
ScaleManager#boundingParent should equal |
|
The problem is that So boundingParent and getParentBounds() are actually correct, but setupScale() isn't correct to call it that way. We need to keep |
|
@pantoninho most of them don't, I think. See
|
|
I'm not sure if I understood what you've said @samme, but I've found no references to the scale manager's If yes, I'd like some more information on how to fix this issue this correctly. |
This PR
Live Example: https://codepen.io/pantoninho/pen/rJyjxb
Describe the changes below:
ScaleManager references
this.boundingParentto calculate the initial canvas size, but this property does not hold any value.. I suppose it was left-over code from previous commits.There were multiple reports in the original phaser repo that may be related to this issue:
phaserjs/phaser#2592
phaserjs/phaser#2458
phaserjs/phaser#2556
Replacing
this.boundingParentreferences tothis.parentNodesolves the problem and everything works as expected.The grunt task is not re-building the custom builds, is it supposed to?