From c94f3c532df4044b975a9d031e0df3e93be4ad34 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sat, 14 Sep 2019 21:41:11 +0100 Subject: [PATCH] Set top positions for tools on resize --- lib/ice-coder.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/ice-coder.js b/lib/ice-coder.js index 17488e4..a4092f9 100644 --- a/lib/ice-coder.js +++ b/lib/ice-coder.js @@ -198,6 +198,13 @@ var ICEcoder = { ICEcoder.output.style.height = winH + "px"; ICEcoder.database.style.height = winH + "px"; ICEcoder.git.style.height = winH + "px"; + ICEcoder.terminal.style.top = winH + "px"; + ICEcoder.output.style.top = winH + "px"; + ICEcoder.database.style.top = winH + "px"; + ICEcoder.git.style.top = winH + "px"; + if (top.ICEcoder.showingTool !== false) { + get(top.ICEcoder.showingTool).style.top = 0; + } // Resize the CodeMirror instances to match the window size setTimeout(function(){