From d25da3ccc3fd3f442c63dda55370edd77bce97c6 Mon Sep 17 00:00:00 2001 From: zero Date: Mon, 26 Mar 2007 02:49:42 +0000 Subject: [PATCH] git-svn-id: http://xe-core.googlecode.com/svn/trunk@642 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- .../editor/components/image_gallery/tpl/slide_gallery.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/editor/components/image_gallery/tpl/slide_gallery.js b/modules/editor/components/image_gallery/tpl/slide_gallery.js index 9025abc9d..1f25a22dd 100644 --- a/modules/editor/components/image_gallery/tpl/slide_gallery.js +++ b/modules/editor/components/image_gallery/tpl/slide_gallery.js @@ -121,9 +121,9 @@ function display_gallery_image(obj, is_first_display) { xWidth(target_image, image_width); xHeight(target_image, image_height); - if(image_height<180) { - target_image.style.marginTop = (180-image_height)+"px"; - target_image.style.marginBottom = (180-image_height)+"px"; + if(image_height<200) { + target_image.style.marginTop = (100-image_height/2)+"px"; + target_image.style.marginBottom = (100-image_height/2)+"px"; } else { target_image.style.marginTop = "10px"; target_image.style.marginBottom = "10px";