Skip to content

Commit ae552d6

Browse files
authored
Merge pull request #652 from cs136/revert-623-master
Revert "[frontend] made console bigger when in vertical mode" (merge into stable)
2 parents 57863a1 + d2d601b commit ae552d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/frontend/frontend/file.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ angular.module('frontend-app')
111111
// Resize on window size change
112112
function onResize() {
113113
var narrow = (settings.settings.force_narrow || $window.innerWidth < 992);
114-
var min_height = 750, margin_bottom = 30;
114+
var min_height = 500, margin_bottom = 30;
115115
var editor_elem = $window.document.querySelector("#editor > .CodeMirror");
116116
var console_elem = $window.document.querySelector("#console > .CodeMirror");
117117
// Run only when DOM is ready.
@@ -121,10 +121,10 @@ angular.module('frontend-app')
121121
var console_input_height = $window.document.querySelector('#console-input').offsetHeight;
122122
if (editor_elem)
123123
editor_elem.style.height = sprintf("%fpx",
124-
(narrow ? target_height * 0.5 : target_height) - file_control_height);
124+
(narrow ? target_height * 0.7 : target_height) - file_control_height);
125125
if (console_elem)
126126
console_elem.style.height = sprintf("%fpx",
127-
(narrow ? (target_height * 0.5 - file_control_height) : target_height) - console_input_height);
127+
(narrow ? (target_height * 0.3 - file_control_height) : target_height) - console_input_height);
128128
if(self.editor)
129129
self.editor.refresh();
130130
if(self.consoleEditor)

0 commit comments

Comments
 (0)