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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user