修正窗口高度

This commit is contained in:
joyqi
2013-11-01 19:42:19 +08:00
parent a80a67a520
commit b096731041

View File

@@ -128,14 +128,16 @@ $(document).ready(function () {
var input = $('#text'), th = textarea.height();
editor.hooks.chain('enterFakeFullScreen', function () {
var height = Math.max(document.documentElement.clientHeight, document.body.clientHeight);
th = textarea.height();
$(document.body).addClass('fullscreen');
textarea.css('height', document.body.clientHeight - 46 - 1);
textarea.css('height', height - 52);
});
editor.hooks.chain('enterFullScreen', function () {
$(document.body).addClass('fullscreen');
textarea.css('height', window.screen.height - 46);
textarea.css('height', window.screen.height - 52);
});
editor.hooks.chain('exitFullScreen', function () {