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

This commit is contained in:
zero 2007-03-06 10:26:58 +00:00
parent 3eefc07577
commit 5b99985858
10 changed files with 110 additions and 8 deletions

View file

@ -112,3 +112,25 @@ function svc_folder_close(id) {
close_text_obj.style.display = "none";
folder_obj.style.display = "none";
}
// 팝업의 경우 내용에 맞춰 현 윈도우의 크기를 조절해줌 (모두 잘 되려나..)
function setFixedPopupSize() {
var popup_content = xGetElementById('popup_content');
var ruler1 = xGetElementById('resize_ruler_1');
var ruler2 = xGetElementById('resize_ruler_2');
var ruler_box_1 = xGetElementById("ruler_box_1");
var ruler_box_2 = xGetElementById("ruler_box_2");
if(!xIE4Up) {
var width = xWidth(ruler1);
var height = xHeight(ruler2)+22;
} else {
var width = xWidth(popup_content)+15;
var height = xHeight(popup_content)+50;
}
window.resizeTo(width, height);
ruler_box_1.style.visibility = "hidden";
ruler_box_2.style.visibility = "hidden";
popup_content.style.position = "";
}

4
common/tpl/css/popup.css Normal file
View file

@ -0,0 +1,4 @@
body {
margin:0px;
padding:0px;
}

BIN
common/tpl/images/blank.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 B

View file

@ -0,0 +1,18 @@
<!--%import("css/popup.css")-->
<!--#include("./common/tpl/common_header.html")-->
<div style="position:absolute;left:0px;top:0px;" id="popup_content">
{$content}
<div style="position:absolute;left:0px;top:0px;width:100%;height:1px;" id="ruler_box_1">
<img src="./images/blank.gif" width="100%" height="1" border="0" alt="for_resize_popup_window" id="resize_ruler_1" />
</div>
<div style="position:absolute;left:0px;top:0px;height:100%;width:1px;" id="ruler_box_2">
<img src="./images/blank.gif" width="1" height="100%" border="0" alt="for_resize_popup_window" id="resize_ruler_2" />
</div>
</div>
<script type="text/javascript">
xAddEventListener(window, 'load', setFixedPopupSize);
</script>
<!--#include("./common/tpl/common_footer.html")-->