fix fullscreen

This commit is contained in:
joyqi 2013-10-25 14:41:22 +08:00
parent 1d72a7d335
commit 054739c406

View File

@ -129,8 +129,7 @@ $(document).ready(function () {
editor.hooks.chain('enterFullScreen', function () {
th = textarea.height();
$(document.body).addClass('fullscreen');
$('#wmd-fullscreen-button span').css('background-position', '-240px -20px');
textarea.height(window.screen.height - 38);
textarea.css('height', window.screen.height - 46);
});
editor.hooks.chain('exitFullScreen', function () {