提交 26496608 编写于 作者: A Alex Dima

Only move line numbers down by 1px on Linux

上级 30588b55
......@@ -7,6 +7,7 @@
import 'vs/css!./lineNumbers';
import {ViewEventHandler} from 'vs/editor/common/viewModel/viewEventHandler';
import * as Platform from 'vs/base/common/platform';
import EditorBrowser = require('vs/editor/browser/editorBrowser');
import EditorCommon = require('vs/editor/common/editorCommon');
......@@ -98,7 +99,7 @@ export class LineNumbersOverlay extends ViewEventHandler implements EditorBrowse
var output: IRenderResult = {};
var lineHeightClassName = (this._context.configuration.editor.lineHeight % 2 === 0 ? ' lh-even': ' lh-odd')
var lineHeightClassName = (Platform.isLinux ? (this._context.configuration.editor.lineHeight % 2 === 0 ? ' lh-even': ' lh-odd') : '');
var lineHeight = this._context.configuration.editor.lineHeight.toString(),
lineNumber:number,
renderLineNumber:string;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册