feat(Stage): broadcast display size changes

This commit is contained in:
cha0s 2019-04-14 00:22:22 -05:00
parent 2f46cd3a4e
commit 512683d48b

View File

@ -146,6 +146,7 @@ export class Stage extends Container {
// Precalc the transformation ratio and apply it to the UI layer.
this._transformRatio = this.size[0] / this.element.clientWidth;
this.ui.style.transform = `scale(${1 / this._transformRatio})`;
this.emit('displaySizeChanged', this.displaySize);
}
render() {