新建和编辑关卡的时候,点击代码库弹框后,页面被滚动置顶部了

This commit is contained in:
daiao 2017-08-22 16:11:56 +08:00
parent 8037d443bc
commit 55a1367b8a
10 changed files with 12 additions and 10 deletions

View File

@ -1,5 +1,5 @@
<%= stylesheet_link_tag '/editormd/css/editormd','/editormd/css/editormd.min.css' %>
<%= javascript_include_tag '/editormd/editormd.min.js','/editormd/examples/js/jquery.min.js' %>
<%= javascript_include_tag '/editormd/editormd','/editormd/examples/js/jquery.min.js' %>
<style>
.CodeMirror-scroll{
overflow: auto !important;

View File

@ -30,7 +30,7 @@
});
</script>
</head>
<body onload="prettyPrint();">
<body onload="prettyPrint();" style="height: 100%">
<div class="newContainer"> <!-- 页面全部内容 -->
<div class="newHeader"> <!-- 头部 -->
<%= render :partial => User.current.logged? ? 'layouts/logined_header' : 'layouts/unlogin_header' %>

View File

@ -16,7 +16,7 @@
<%= yield :header_tags -%>
</head>
<!--add by huang-->
<body onload="setupAjaxIndicator();">
<body onload="setupAjaxIndicator();" style="height: 100%">
<div class="cl"></div>
<div class="page -layout-v -fit ">

View File

@ -15,7 +15,7 @@
<%= yield :header_tags -%>
</head>
<!--add by huang-->
<body onload="prettyPrint();">
<body onload="prettyPrint();" style="height: 100%">
<div class="newContainer"> <!-- 页面全部内容 -->
<div class="newHeader"> <!-- 头部 -->
<%= render :partial => User.current.logged? ? 'layouts/logined_header' : 'layouts/unlogin_header' %>

View File

@ -18,7 +18,7 @@
<%= yield :header_tags -%>
</head>
<!--add by huang-->
<body onload="prettyPrint();">
<body onload="prettyPrint();" style="height: 100%;">
<div class="newContainer edu-bg"> <!-- 页面全部内容 -->
<div class="newHeader"> <!-- 头部 -->
<%= render :partial => User.current.logged? ? 'layouts/logined_header' : 'layouts/unlogin_header' %>

View File

@ -1,5 +1,5 @@
<%= stylesheet_link_tag '/editormd/css/editormd' %>
<%= javascript_include_tag '/editormd/editormd.min.js' %>
<%= javascript_include_tag '/editormd/editormd' %>
<div class="edu-con-bg01 user_bg_shadow mb20" style="padding:30px 0;">
<div class="ml30 mr30">
<div>

View File

@ -4451,7 +4451,7 @@
}
editormd.dialogZindex += 2;
$("body").removeAttr("style");
return dialog;
};

View File

@ -1,5 +1,5 @@
$(function() {
$("#search_not_collaborators").live('input', function (e) {
$("#search_not_collaborators").on('input', function (e) {
throttle(search_not_teacher_f, window, e);
});
});

View File

@ -1,5 +1,6 @@
@charset "utf-8";
html,body{ font-size:14px; line-height:2.0; height:100%;}
body{font-size:14px; line-height:2.0;}
html{height:100%;}
.newContainer{ min-height:100%; height: auto !important; height: 100%; /*IE6不识别min-height*/position: relative;}
.newMain{ margin: 0 auto; padding-bottom: 155px; }
.newFooter{ position: absolute; bottom: 0; width: 100%; height: 155px;background: #323232; clear:both; min-width: 1200px}

View File

@ -1,5 +1,6 @@
/************新版公共****************/
html,body{ font-size:14px; line-height:2.0; height:100%;}
body{font-size:14px; line-height:2.0;}
html{height:100%;}
/*.newContainer{ min-height:100%; height: auto !important; height: 100%; position: relative;}
.newMain{ margin: 0 auto; padding-bottom: 155px; }
.newFooter{ position: absolute; bottom: 0; width: 100%; height: 155px;background: #323232; clear:both; min-width: 1200px}