mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-16 01:39:58 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1795 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
60e165189b
commit
ca676781d8
1 changed files with 22 additions and 0 deletions
22
layouts/zb5_site/js/layout.js
Normal file
22
layouts/zb5_site/js/layout.js
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
function fnStartInit() {
|
||||
var obj = xGetElementById('loading');
|
||||
obj.style.visibility = 'hidden';
|
||||
}
|
||||
xAddEventListener(window,'load',fnStartInit);
|
||||
|
||||
|
||||
// footer를 화면 크기에 맞춰 설정
|
||||
xAddEventListener(window, 'load', fixLayoutFooter);
|
||||
xAddEventListener(window, 'resize', fixLayoutFooter);
|
||||
function fixLayoutFooter() {
|
||||
var headerHeight = 145;
|
||||
var bodyHeight = xHeight(xGetElementById('content_body'));
|
||||
var footerHeight = 55;
|
||||
var clientHeight = xClientHeight();
|
||||
var newHeight = clientHeight - footerHeight - headerHeight;
|
||||
if(typeof(editor_height)!='undefined') newHeight += editor_height;
|
||||
|
||||
if(newHeight<bodyHeight) newHeight = bodyHeight;
|
||||
xHeight('content_body', newHeight);
|
||||
xHeight('left_menu_table', newHeight);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue