There was an error while loading. Please reload this page.
1 parent f54ab6c commit bf7795dCopy full SHA for bf7795d
1 file changed
assets/nav.js
@@ -142,6 +142,12 @@
142
lineWrapping: false,
143
});
144
cm.setSize('100%', 'auto');
145
+ // Force CM to expand to full content height
146
+ const cmEl = wrap.querySelector('.CodeMirror');
147
+ const scroller = wrap.querySelector('.CodeMirror-scroll');
148
+ if (cmEl) cmEl.style.height = 'auto';
149
+ if (scroller) { scroller.style.height = 'auto'; scroller.style.overflowY = 'visible'; }
150
+ cm.refresh();
151
152
153
0 commit comments