mirror of
https://github.com/typecho/typecho.git
synced 2025-03-23 19:40:22 +01:00
fix preview height
This commit is contained in:
parent
60ae83c142
commit
cdad2e9ec0
@ -152,10 +152,11 @@ $(document).ready(function () {
|
||||
}
|
||||
});
|
||||
|
||||
var input = $('#text'), th = textarea.height();
|
||||
var input = $('#text'), th = textarea.height(), ph = preview.height();
|
||||
|
||||
editor.hooks.chain('enterFakeFullScreen', function () {
|
||||
th = textarea.height();
|
||||
ph = preview.height();
|
||||
$(document.body).addClass('fullscreen');
|
||||
var h = $(window).height() - toolbar.outerHeight();
|
||||
|
||||
@ -174,7 +175,7 @@ $(document).ready(function () {
|
||||
editor.hooks.chain('exitFullScreen', function () {
|
||||
$(document.body).removeClass('fullscreen');
|
||||
textarea.height(th);
|
||||
preview.css('height', 'auto');
|
||||
preview.height(ph);
|
||||
});
|
||||
|
||||
editor.run();
|
||||
|
Loading…
x
Reference in New Issue
Block a user