slim scroll

This commit is contained in:
life
2014-06-14 17:29:29 +08:00
parent 8d4a757ee9
commit cf4accc110
4 changed files with 29 additions and 17 deletions

View File

@ -950,6 +950,9 @@ Note.setNoteCache(noteContentJson);
Note.renderNoteContent(noteContentJson)
Tag.renderTagNav(tagsJson);
// init notebook后才调用
initSlimScroll();
</script>
<!-- mdEditor -->

View File

@ -950,6 +950,9 @@ Note.setNoteCache(noteContentJson);
Note.renderNoteContent(noteContentJson)
Tag.renderTagNav(tagsJson);
// init notebook后才调用
initSlimScroll();
</script>
<!-- mdEditor -->

File diff suppressed because one or more lines are too long

View File

@ -666,7 +666,17 @@ $(function() {
// slimScroll
//---
/*
setTimeout(function() {
initSlimScroll();
}, 10);
*/
// 编辑器模式
em.init();
});
function initSlimScroll() {
$("#notebook").slimScroll({
height: "100%", // $("#leftNotebook").height()+"px"
});
@ -683,11 +693,7 @@ $(function() {
});
$("#wmd-panel-preview").css("width", "100%");
}, 10);
// 编辑器模式
em.init();
});
}
// 编辑器模式
function editorMode() {