From b96a8dfc4fc45688566f2e8849e8f5f1919bff84 Mon Sep 17 00:00:00 2001 From: zero Date: Sun, 1 Apr 2007 12:57:58 +0000 Subject: [PATCH] git-svn-id: http://xe-core.googlecode.com/svn/trunk@855 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- common/js/common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/js/common.js b/common/js/common.js index 336401a75..5f57a9e40 100644 --- a/common/js/common.js +++ b/common/js/common.js @@ -256,7 +256,6 @@ function showOriginalImage(evt) { orig_image.src = src; var areabg = xGetElementById("fororiginalimageareabg"); - areabg.style.visibility = "visible"; xWidth(areabg, image_width+22); xHeight(areabg, image_height+32); @@ -273,7 +272,6 @@ function showOriginalImage(evt) { var y = parseInt((area_height-image_height)/2,10); if(x<0) x = 0; if(y<0) y = 0; - xLeft(areabg, x); xTop(areabg, y); @@ -283,6 +281,8 @@ function showOriginalImage(evt) { xAddEventListener(orig_image, "mousedown", origImageDragEnable); xAddEventListener(window, "scroll", closeOriginalImage); xAddEventListener(window, "resize", closeOriginalImage); + + areabg.style.visibility = 'visible'; } /**