mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-21 20:29:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@292 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5b99985858
commit
af50e40164
7 changed files with 38 additions and 45 deletions
|
|
@ -113,24 +113,25 @@ function svc_folder_close(id) {
|
|||
folder_obj.style.display = "none";
|
||||
}
|
||||
|
||||
// 팝업의 경우 내용에 맞춰 현 윈도우의 크기를 조절해줌 (모두 잘 되려나..)
|
||||
// 팝업의 경우 내용에 맞춰 현 윈도우의 크기를 조절해줌
|
||||
// 팝업의 내용에 맞게 크기를 늘리는 것은... 쉽게 되지는 않음.. ㅡ.ㅜ
|
||||
// 혹시.. 제대로 된 소스 있으신 분은 헬프미.. ㅠ0ㅠ
|
||||
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;
|
||||
}
|
||||
var i=0;
|
||||
while(i<2) {
|
||||
window.scrollTo(03000,03000);
|
||||
window.resizeBy(xScrollLeft(), xScrollTop());
|
||||
i++;
|
||||
}
|
||||
window.scrollTo(0,0);
|
||||
|
||||
window.resizeTo(width, height);
|
||||
|
||||
ruler_box_1.style.visibility = "hidden";
|
||||
ruler_box_2.style.visibility = "hidden";
|
||||
popup_content.style.position = "";
|
||||
// IE의 경우 한번더 해줘야 한다. (이게 맞는건지.. ㅡ.ㅜ)
|
||||
if(xIE4Up) {
|
||||
var i=0;
|
||||
while(i<2) {
|
||||
var height = xHeight(xGetElementById('popup_content'));
|
||||
if(xGetBodyHeight()!=height) window.resizeBy(0, height-xGetBodyHeight());
|
||||
i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -158,8 +158,6 @@ function xEvent(evt) // object prototype
|
|||
this.altKey = e.altKey;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function xFirstChild(e, t)
|
||||
{
|
||||
var c = e ? e.firstChild : null;
|
||||
|
|
|
|||
|
|
@ -1,15 +1,8 @@
|
|||
<!--%import("css/popup.css")-->
|
||||
|
||||
<!--#include("./common/tpl/common_header.html")-->
|
||||
<div style="position:absolute;left:0px;top:0px;" id="popup_content">
|
||||
<div 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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue