mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-05 12:22:44 +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
|
textContent : editorPageCount
|
||||||
});
|
});
|
||||||
codeMirror.addWidget({ line: lineNumber, ch: 0 }, testElement);
|
codeMirror.addWidget({ line: lineNumber, ch: 0 }, testElement);
|
||||||
testElement.style.top = `${parseInt(testElement.style.top) - 12.5}px`;
|
// testElement.style.top = `${parseInt(testElement.style.top) - 12.5}px`;
|
||||||
testElement.style.left = 'unset';
|
testElement.style.top = `${parseInt(testElement.style.top) - cm.defaultTextHeight()}px`;
|
||||||
|
testElement.style.left = null;
|
||||||
editorPageCount = editorPageCount + 1;
|
editorPageCount = editorPageCount + 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -136,7 +137,7 @@ const Editor = createClass({
|
|||||||
});
|
});
|
||||||
codeMirror.addWidget({ line: lineNumber, ch: 0 }, testElement);
|
codeMirror.addWidget({ line: lineNumber, ch: 0 }, testElement);
|
||||||
testElement.style.top = `${parseInt(testElement.style.top) - 12.5}px`;
|
testElement.style.top = `${parseInt(testElement.style.top) - 12.5}px`;
|
||||||
testElement.style.left = 'unset';
|
testElement.style.left = null;
|
||||||
editorPageCount = editorPageCount + 1;
|
editorPageCount = editorPageCount + 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
}
|
}
|
||||||
.editor-page-count{
|
.editor-page-count{
|
||||||
color : grey;
|
color : grey;
|
||||||
right : 15px;
|
right : 15px; // needs to be enough to push past scrollbar.
|
||||||
}
|
}
|
||||||
.columnSplit{
|
.columnSplit{
|
||||||
font-style : italic;
|
font-style : italic;
|
||||||
|
|||||||
Reference in New Issue
Block a user