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 <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2012-06-05 17:28:50 +04:00
parent 1ee6b32cd6
commit 0032531b76

View File

@ -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();