mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 08:49:56 +09:00
관리자 페이지에서 메뉴의 child를 visible/hidden시킬때 관리자 페이지 레이아웃의 높이 변경
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1941 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6afb0bb76e
commit
c2fab6070f
2 changed files with 8 additions and 2 deletions
|
|
@ -295,19 +295,23 @@ function toggleFolder(zone_id) {
|
|||
var line_icon = xGetElementById(zone_id+'_line_icon');
|
||||
var folder_icon = xGetElementById(zone_id+'_folder_icon');
|
||||
|
||||
var height = 0;
|
||||
|
||||
// 대상의 자식 노드들이 숨겨져 있다면 열고 아니면 닫기
|
||||
if(child_zone.style.display == "block") {
|
||||
height = xHeight(child_zone)*-1;
|
||||
child_zone.style.display = "none";
|
||||
if(line_icon.src.indexOf('bottom')>0) line_icon.src = tree_plus_bottom_icon.src;
|
||||
else line_icon.src = tree_plus_icon.src;
|
||||
|
||||
folder_icon.src = tree_folder_icon.src;
|
||||
} else {
|
||||
if(line_icon.src.indexOf('bottom')>0) line_icon.src = tree_minus_bottom_icon.src;
|
||||
else line_icon.src = tree_minus_icon.src;
|
||||
folder_icon.src = tree_open_folder_icon.src;
|
||||
child_zone.style.display = "block";
|
||||
height = xHeight(child_zone);
|
||||
}
|
||||
if(typeof(fixAdminLayoutFooter)=='function') fixAdminLayoutFooter( height );
|
||||
}
|
||||
|
||||
// 노드의 글자 선택시
|
||||
|
|
|
|||
|
|
@ -22,6 +22,8 @@ function fixAdminLayoutFooter(height) {
|
|||
var newHeight = clientHeight - footerHeight - headerHeight + 71 + 38;
|
||||
|
||||
if(newHeight<bodyHeight) newHeight = bodyHeight;
|
||||
if(typeof(height)=='number') newHeight += height;
|
||||
if(typeof(height)=='number') {
|
||||
newHeight += height;
|
||||
}
|
||||
xHeight('cBody', newHeight);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue