From 426103d14d455b266968555b7f6162e8b262bcb3 Mon Sep 17 00:00:00 2001 From: chicpro Date: Fri, 8 Mar 2013 16:26:41 +0900 Subject: [PATCH] =?UTF-8?q?#358=20=EC=97=90=20=EB=94=B0=EB=A5=B8=20screen.?= =?UTF-8?q?height=20=EC=8A=A4=ED=81=AC=EB=A6=BD=ED=8A=B8=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/view_image.php | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/bbs/view_image.php b/bbs/view_image.php index f1918aabf..f7c3142fc 100644 --- a/bbs/view_image.php +++ b/bbs/view_image.php @@ -44,14 +44,22 @@ var win_t = (screen.height - win_h) / 2; if(win_w > screen.width) { win_l = 0; - win_w = screen.width; - win_h = parseInt((win_w * screen.height) / screen.width); + win_w = screen.width - 20; + + if(win_h > screen.height) { + win_t = 0; + win_h = screen.height - 40; + } } if(win_h > screen.height) { win_t = 0; - win_h = screen_heigth; - win_w = parseInt((win_h * screen.width) / screen.height); + win_h = screen.height - 40; + + if(win_w > screen.width) { + win_w = screen.width - 20; + win_l = 0; + } } window.moveTo(win_l, win_t);