diff --git a/TODO.md b/TODO.md index b7edae5..12f0a46 100644 --- a/TODO.md +++ b/TODO.md @@ -15,5 +15,5 @@ ? not to display output.log ? autocomplete in heta syntax ? Matlab highliting support -? console at the bottom +- console at the bottom ? file content manager diff --git a/src/app.js b/src/app.js index 8ba22e3..feb0626 100644 --- a/src/app.js +++ b/src/app.js @@ -254,16 +254,17 @@ async function downloadPlatform() { a.click(); } -function updateWindowHeight(){ - let h = document.documentElement.clientHeight - $('#topDiv').outerHeight(); - $('#mainDiv').height(h + 'px'); +function updateWindowHeight() { +/* + //let h = document.documentElement.clientHeight - $('#topDiv').outerHeight(); + //$('#mainDiv').height(h + 'px'); let h2 = $('#mainDiv').outerHeight() - $('#leftPanel .codeNavigation').outerHeight() - 2; $('#leftPanel .codeContainer').height(h2 + 'px'); let h3 = $('#mainDiv').outerHeight() - $('#rightPanel .codeNavigation').outerHeight() - 2; $('#rightPanel .codeContainer').height(h3 + 'px'); - +*/ // update editors leftCollection.pagesStorage .forEach((x) => $(x.editorContainer).css('display') === 'block' && x.monacoEditor?.layout()); diff --git a/src/dropping.css b/src/dropping.css index dd6841f..a285163 100644 --- a/src/dropping.css +++ b/src/dropping.css @@ -20,4 +20,27 @@ svg#i-lightning { width: 90%; height: 600px; border: 5px dashed red; +} + +html { + height: 100%; +} +body { + height: 100%; + display: flex; + flex-direction: column; +} +#topDiv { + min-height: 50px; +} +#mainDiv { + flex-grow: 1; +} +#leftPanel, #rightPanel { + height: 100%; + display: flex; + flex-direction: column; +} +.codeContainer { + flex-grow: 1; } \ No newline at end of file diff --git a/src/index.html b/src/index.html index 1649bca..2158a5c 100644 --- a/src/index.html +++ b/src/index.html @@ -11,7 +11,7 @@ gtag('config', 'G-3D4WTJ03NM'); - + @@ -38,7 +38,7 @@