0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 20:42:43 +00:00

remove left property entirely and set height to cm.defaultTextHeight

This commit is contained in:
Gazook89
2021-11-10 11:17:45 -06:00
parent 3e54f6e6e1
commit 9f05aae876
2 changed files with 5 additions and 4 deletions

View File

@@ -122,8 +122,9 @@ const Editor = createClass({
textContent : editorPageCount
});
codeMirror.addWidget({ line: lineNumber, ch: 0 }, testElement);
testElement.style.top = `${parseInt(testElement.style.top) - 12.5}px`;
testElement.style.left = 'unset';
// testElement.style.top = `${parseInt(testElement.style.top) - 12.5}px`;
testElement.style.top = `${parseInt(testElement.style.top) - cm.defaultTextHeight()}px`;
testElement.style.left = null;
editorPageCount = editorPageCount + 1;
}
}
@@ -136,7 +137,7 @@ const Editor = createClass({
});
codeMirror.addWidget({ line: lineNumber, ch: 0 }, testElement);
testElement.style.top = `${parseInt(testElement.style.top) - 12.5}px`;
testElement.style.left = 'unset';
testElement.style.left = null;
editorPageCount = editorPageCount + 1;
}
}

View File

@@ -11,7 +11,7 @@
}
.editor-page-count{
color : grey;
right : 15px;
right : 15px; // needs to be enough to push past scrollbar.
}
.columnSplit{
font-style : italic;