From b0967310419beeaedb5ddeb661087b47c1933a92 Mon Sep 17 00:00:00 2001 From: joyqi Date: Fri, 1 Nov 2013 19:42:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E7=AA=97=E5=8F=A3=E9=AB=98?= =?UTF-8?q?=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/editor-js.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/admin/editor-js.php b/admin/editor-js.php index c72f3081..037e5185 100644 --- a/admin/editor-js.php +++ b/admin/editor-js.php @@ -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 () {