From 0032531b76de65621149b1a28412fb0246d72584 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 5 Jun 2012 17:28:50 +0400 Subject: [PATCH] minor changes... - layout broken for IE8 - switching ribbons still jumps around a couple of times -- probably due to not accounting for the animated padding... Signed-off-by: Alex A. Naanou --- ui/gallery.html | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/ui/gallery.html b/ui/gallery.html index 7dd83c4d..282f6ede 100755 --- a/ui/gallery.html +++ b/ui/gallery.html @@ -46,17 +46,14 @@ $(document).ready(function() { var field_offset = field.offset() // center the current image... - field.css({ - left: field_offset.left - image_offset.left + (container.innerWidth() - cur_image.innerWidth())/2, - top: field_offset.top - image_offset.top + (container.innerHeight() - cur_image.innerHeight())/2, - }) - /* XXX this is really jumpy... field.animate({ - left: field_offset.left - image_offset.left + (container.innerWidth() - cur_image.innerWidth())/2, - top: field_offset.top - image_offset.top + (container.innerHeight() - cur_image.innerHeight())/2, - }) */ + field.css({ + left: field_offset.left - image_offset.left + (container.innerWidth() - cur_image.innerWidth())/2, + top: field_offset.top - image_offset.top + (container.innerHeight() - cur_image.innerHeight())/2 + }) + e.preventDefault();