diff --git a/.idea/bigdate.iml b/.idea/bigdate.iml
index 1ef1abf03..54164e1bd 100644
--- a/.idea/bigdate.iml
+++ b/.idea/bigdate.iml
@@ -13,26 +13,46 @@
-
-
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
@@ -57,46 +77,28 @@
-
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
diff --git a/app/views/games/_file_edit_form.html.erb b/app/views/games/_file_edit_form.html.erb
index 9b5da6ad6..723aa0038 100644
--- a/app/views/games/_file_edit_form.html.erb
+++ b/app/views/games/_file_edit_form.html.erb
@@ -4,7 +4,7 @@
@@ -23,7 +23,7 @@
lineNumbers: true,
theme: "ambiance",
// extraKeys: {"Ctrl-Q": "autocomplete"}, // 快捷键
- indentUnit: 4, //代码缩进为一个tab的距离
+ indentUnit: 2, //代码缩进为一个tab的距离
matchBrackets: true,
autoRefresh: true,
smartIndent: true//智能换行
@@ -66,5 +66,6 @@
editor_CodeMirror.refresh();
var h = $("#games_repository_contents").height() - $("#top_repository").height() - 10;
$(".CodeMirror-scroll").css("min-height", h);
+ $(".CodeMirror-scroll").css("max-height", h);
});
\ No newline at end of file
diff --git a/app/views/games/show.html.erb b/app/views/games/show.html.erb
index 40696988d..64d3d695a 100644
--- a/app/views/games/show.html.erb
+++ b/app/views/games/show.html.erb
@@ -38,6 +38,7 @@
}
var h = $("#games_repository_contents").height() - $("#top_repository").height() - 10;
$(".CodeMirror-scroll").css("min-height", h);
+ $(".CodeMirror-scroll").css("max-height", h);
}
// 测评的扩大与缩小
function valuation_extend_and_zoom(){