Merge pull request #6361 from tchandelle/canvas-margin

Remove "margin" at the bottom of the canvas
This commit is contained in:
Andreas Hocevar
2017-02-06 14:47:16 +01:00
committed by GitHub
3 changed files with 47 additions and 0 deletions

View File

@@ -41,6 +41,7 @@ ol.renderer.canvas.Map = function(container, map) {
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);

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);