writing mode fix

This commit is contained in:
life
2014-05-13 17:13:02 +08:00
parent 2f79331ccf
commit 6ed0e30d2b
4 changed files with 12 additions and 3 deletions

View File

@ -958,3 +958,6 @@ body {
margin-top: 10px; margin-top: 10px;
visibility: hidden; visibility: hidden;
} }
#moreBtn {
right: 0 !important;
}

View File

@ -1058,5 +1058,7 @@ html,body {
visibility: hidden; visibility: hidden;
} }
body { body {
}
#moreBtn {
right: 0 !important;
} }

File diff suppressed because one or more lines are too long

View File

@ -729,6 +729,8 @@ editorMode.prototype.changeMode = function(isWritingMode) {
} else { } else {
this.normalMode(); this.normalMode();
} }
$("#moreBtn i").removeClass("fa-angle-up").addClass("fa-angle-down");
} }
editorMode.prototype.normalMode = function() { editorMode.prototype.normalMode = function() {
var $c = $("#editorContent_ifr").contents(); var $c = $("#editorContent_ifr").contents();
@ -743,7 +745,7 @@ editorMode.prototype.normalMode = function() {
theme += ".css"; theme += ".css";
$("#themeLink").attr("href", "/css/theme/" + theme); $("#themeLink").attr("href", "/css/theme/" + theme);
$("#mceToolbar").css("height", "30px");
} }
editorMode.prototype.writtingMode = function() { editorMode.prototype.writtingMode = function() {
// $("body").fadeOut(); // $("body").fadeOut();
@ -762,6 +764,8 @@ editorMode.prototype.writtingMode = function() {
$("#noteItemListWrap, #notesAndSort").fadeOut(); $("#noteItemListWrap, #notesAndSort").fadeOut();
}); });
// 点击扩展会使html的height生成, 切换后会覆盖css文件的
$("#mceToolbar").css("height", "40px");
// $("body").fadeIn(); // $("body").fadeIn();
} }