Skip to content

Commit

Permalink
fix map not displaying inside RTL elements (mapbox#9332)
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner authored and mike-unearth committed Mar 18, 2020
1 parent 2db2f59 commit da9b463
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/css/mapbox-gl.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
overflow: hidden;
position: relative;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
text-align: left;
}

.mapboxgl-canvas {
position: absolute;
left: 0;
top: 0;
}

.mapboxgl-map:-webkit-full-screen {
Expand Down
1 change: 0 additions & 1 deletion src/ui/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -2020,7 +2020,6 @@ class Map extends Camera {
}

this._canvas = DOM.create('canvas', 'mapboxgl-canvas', canvasContainer);
this._canvas.style.position = 'absolute';
this._canvas.addEventListener('webglcontextlost', this._contextLost, false);
this._canvas.addEventListener('webglcontextrestored', this._contextRestored, false);
this._canvas.setAttribute('tabindex', '0');
Expand Down

0 comments on commit da9b463

Please sign in to comment.