Skip to content

Commit

Permalink
Fix #75927.
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornix committed Jun 25, 2019
1 parent a55b154 commit f4f0afa
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/vs/editor/browser/viewParts/minimap/minimap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -472,17 +472,18 @@ export class Minimap extends ViewPart {
this._shadow.setClassName('minimap-shadow-hidden');
this._domNode.appendChild(this._shadow);

this._canvas = createFastDomNode(document.createElement('canvas'));
this._canvas.setPosition('absolute');
this._canvas.setLeft(0);
this._domNode.appendChild(this._canvas);

this._decorationsCanvas = createFastDomNode(document.createElement('canvas'));
this._decorationsCanvas.setPosition('absolute');
this._decorationsCanvas.setClassName('minimap-decorations-layer');
this._decorationsCanvas.setLeft(0);
this._domNode.appendChild(this._decorationsCanvas);

// text are rendered at the top, similar to editor view lines.
this._canvas = createFastDomNode(document.createElement('canvas'));
this._canvas.setPosition('absolute');
this._canvas.setLeft(0);
this._domNode.appendChild(this._canvas);

this._slider = createFastDomNode(document.createElement('div'));
this._slider.setPosition('absolute');
this._slider.setClassName('minimap-slider');
Expand Down

0 comments on commit f4f0afa

Please sign in to comment.