From e1a6ffb16502703b7425afca9e23ea90705802c1 Mon Sep 17 00:00:00 2001 From: Alexander Gugel Date: Thu, 9 Jul 2015 18:08:06 +0200 Subject: [PATCH] fix: Get context size from DOMRenderer root element size --- renderers/Context.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/renderers/Context.js b/renderers/Context.js index a6633c8b..2c26b61c 100644 --- a/renderers/Context.js +++ b/renderers/Context.js @@ -220,8 +220,8 @@ Context.prototype._initWebGLRenderer = function _initWebGLRenderer() { */ Context.prototype.getRootSize = function getRootSize() { return [ - this._rootEl.offsetWidth, - this._rootEl.offsetHeight + this._domRendererRootEl.offsetWidth, + this._domRendererRootEl.offsetHeight ]; };