Files
EasySoft-ZenTaoPMS/module/editor/js/edit.js
2011-07-02 07:27:59 +00:00

17 lines
403 B
JavaScript

$(function()
{
var windowHeight = $(window).height();
var showHeight = Math.ceil(windowHeight *0.3);
if($('#showContent').attr('id') != undefined)
{
var fileHeight = windowHeight - showHeight - 150;
$('#showContent').height(showHeight);
$('#fileContent').height(fileHeight);
}
else
{
var fileHeight = windowHeight - 140;
$('#fileContent').height(fileHeight);
}
})