Remove "margin" at the bottom of the canvas

This commit is contained in:
Thomas Chandelle
2017-01-12 10:58:01 +01:00
parent 3c751cad69
commit ade0b7898b
3 changed files with 34 additions and 0 deletions

View File

@@ -40,6 +40,7 @@ if (ol.ENABLE_WEBGL) {
(document.createElement('CANVAS'));
this.canvas_.style.width = '100%';
this.canvas_.style.height = '100%';
this.canvas_.style.display = 'block';
this.canvas_.className = ol.css.CLASS_UNSELECTABLE;
container.insertBefore(this.canvas_, container.childNodes[0] || null);