Skip to content

Commit fe79871

Browse files
committed
Use display:none when overview ruler is turned off
1 parent e146c5f commit fe79871

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/vs/editor/browser/viewParts/overviewRuler/decorationsOverviewRuler.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,10 @@ export class DecorationsOverviewRuler extends ViewPart {
318318
if (this._settings.overviewRulerLanes === 0) {
319319
// overview ruler is off
320320
this._domNode.setBackgroundColor(this._settings.backgroundColor ? this._settings.backgroundColor : '');
321+
this._domNode.setDisplay('none');
321322
return;
322323
}
324+
this._domNode.setDisplay('block');
323325
const canvasWidth = this._settings.canvasWidth;
324326
const canvasHeight = this._settings.canvasHeight;
325327
const lineHeight = this._settings.lineHeight;

0 commit comments

Comments
 (0)