Don't set the canvas size too early

This commit is contained in:
Frederic Junod
2013-11-19 16:20:44 +01:00
parent 00186413f8
commit 1816d8d160
2 changed files with 0 additions and 4 deletions

View File

@@ -71,8 +71,6 @@ ol.renderer.webgl.Map = function(container, map) {
*/
this.canvas_ = /** @type {HTMLCanvasElement} */
(goog.dom.createElement(goog.dom.TagName.CANVAS));
this.canvas_.height = container.clientHeight;
this.canvas_.width = container.clientWidth;
this.canvas_.className = ol.css.CLASS_UNSELECTABLE;
goog.dom.insertChildAt(container, this.canvas_, 0);