Fixed CSS for theme highlighting and status bar dropup height

This commit is contained in:
n1474335 2023-01-13 13:12:01 +00:00
parent 1b3d55f051
commit f2bd838596
4 changed files with 6 additions and 6 deletions

View file

@ -265,7 +265,7 @@ class StatusBarPanel {
* @param {EditorView} view
*/
updateSizing(view) {
const viewHeight = view.contentDOM.clientHeight;
const viewHeight = view.contentDOM.parentNode.clientHeight;
this.dom.querySelectorAll(".cm-status-bar-select-scroll").forEach(
el => {
el.style.maxHeight = (viewHeight - 50) + "px";