From eab2bdc976ebce15bec1636aeb89b8ea04bac298 Mon Sep 17 00:00:00 2001 From: joyqi Date: Fri, 1 Nov 2013 23:38:03 +0800 Subject: [PATCH] fix height --- admin/editor-js.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/admin/editor-js.php b/admin/editor-js.php index 851f65e3..ff539378 100644 --- a/admin/editor-js.php +++ b/admin/editor-js.php @@ -128,11 +128,9 @@ $(document).ready(function () { var input = $('#text'), th = textarea.height(); editor.hooks.chain('enterFakeFullScreen', function () { - var height = window.innerHeight || document.body.clientHeight || document.documentElement.clientHeight; - th = textarea.height(); $(document.body).addClass('fullscreen'); - textarea.css('height', height - toolbar.outerHeight()); + textarea.css('height', $(window).height() - toolbar.outerHeight()); }); editor.hooks.chain('enterFullScreen', function () {