]> _ Git - fluidbook-v3.git/commitdiff
done #652 @0:15
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 2 Sep 2016 09:30:17 +0000 (09:30 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 2 Sep 2016 09:30:17 +0000 (09:30 +0000)
js/220-exemples.js

index b9ff7789a8c52d5d65ba33f1d84c562db98475f1..c6dc085024c048f0c4eb18cf85da16d91585adef 100644 (file)
@@ -45,7 +45,7 @@ function resizeExemples() {
             }\r
 \r
         } catch (e) {\r
-            \r
+\r
         }\r
 \r
         $('.publications article').css({left: '', right: ''});\r
@@ -80,8 +80,9 @@ function resizeExemples() {
         h = w / ratio;\r
 \r
         var left = ((cw / 0.8) - w) / 2;\r
+        var top = ((ch / 0.6) - h) / 2;\r
 \r
-        $(this).css({width: w, height: h, left: left, fontSize: (w / 600) * 10});\r
+        $(this).css({width: w, height: h, left: left, top: top, fontSize: (w / 600) * 10});\r
     });\r
 \r
     // Update ellipsis\r