From 4a33048af5ae3521d2fdcdce788ebc9c87e7b3e7 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Fri, 2 Sep 2016 09:30:17 +0000 Subject: [PATCH] done #652 @0:15 --- js/220-exemples.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/220-exemples.js b/js/220-exemples.js index b9ff778..c6dc085 100644 --- a/js/220-exemples.js +++ b/js/220-exemples.js @@ -45,7 +45,7 @@ function resizeExemples() { } } catch (e) { - + } $('.publications article').css({left: '', right: ''}); @@ -80,8 +80,9 @@ function resizeExemples() { h = w / ratio; var left = ((cw / 0.8) - w) / 2; + var top = ((ch / 0.6) - h) / 2; - $(this).css({width: w, height: h, left: left, fontSize: (w / 600) * 10}); + $(this).css({width: w, height: h, left: left, top: top, fontSize: (w / 600) * 10}); }); // Update ellipsis -- 2.39.5