Ensure renderer uses latest options at open

Fixes #1194
This commit is contained in:
Daniel Imms
2018-01-16 06:34:22 -08:00
parent be18507df6
commit 80f13792a3
+1
View File
@@ -57,6 +57,7 @@ export class Renderer extends EventEmitter implements IRenderer {
};
this._devicePixelRatio = window.devicePixelRatio;
this._updateDimensions();
this.onOptionsChanged();
this._screenDprMonitor = new ScreenDprMonitor();
this._screenDprMonitor.setListener(() => this.onWindowResize(window.devicePixelRatio));