Fixes #19979: Align codelens text to the bottom

This commit is contained in:
Alex Dima
2017-02-06 15:34:32 +01:00
parent 29c4e311cd
commit becf0b556d
2 changed files with 4 additions and 2 deletions
@@ -9,7 +9,6 @@
text-overflow: ellipsis;
font-size: 90%;
color: #999999;
vertical-align: sub;
}
.monaco-editor .codelens-decoration > span,
@@ -19,6 +18,7 @@
-ms-user-select: none;
user-select: none;
white-space: nowrap;
vertical-align: sub;
}
.monaco-editor .codelens-decoration > a {
@@ -71,7 +71,9 @@ class CodeLensContentWidget implements editorBrowser.IContentWidget {
this.setSymbolRange(symbolRange);
this._domNode = document.createElement('span');
this._domNode.style.height = `${editor.getConfiguration().lineHeight}px`;
const lineHeight = editor.getConfiguration().lineHeight;
this._domNode.style.height = `${lineHeight}px`;
this._domNode.style.lineHeight = `${lineHeight}px`;
this._domNode.innerHTML = ' ';
dom.addClass(this._domNode, 'codelens-decoration');
dom.addClass(this._domNode, 'invisible-cl');