From: vincent@cubedesigners.com Date: Fri, 2 Sep 2016 09:30:17 +0000 (+0000) Subject: done #652 @0:15 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=4a33048af5ae3521d2fdcdce788ebc9c87e7b3e7;p=fluidbook-v3.git done #652 @0:15 --- 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