git-svn-id: http://xe-core.googlecode.com/svn/trunk@1816 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-06-28 02:18:54 +00:00
parent 996fc97b7e
commit c62c515195
8 changed files with 72 additions and 60 deletions

View file

@ -14,14 +14,14 @@ function doDeleteShortCut(selected_module) {
// footer를 화면 크기에 맞춰 설정
xAddEventListener(window, 'load', fixAdminLayoutFooter);
xAddEventListener(window, 'resize', fixAdminLayoutFooter);
function fixAdminLayoutFooter() {
var headerHeight = xHeight(xGetElementById('header'));
var bodyHeight = xHeight(xGetElementById('cBody'));
var footerHeight = xHeight(xGetElementById('footer'));
function fixAdminLayoutFooter(height) {
var headerHeight = xHeight('header');
var bodyHeight = xHeight('cBody');
var footerHeight = xHeight('footer');
var clientHeight = xClientHeight();
var newHeight = clientHeight - footerHeight - headerHeight + 71 + 38;
if(typeof(editor_height)!='undefined') newHeight += editor_height;
if(newHeight<bodyHeight) newHeight = bodyHeight;
xHeight(xGetElementById('cBody'), newHeight);
if(typeof(height)=='number') newHeight += height;
xHeight('cBody', newHeight);
}