From: vincent@cubedesigners.com Date: Thu, 30 Jun 2016 12:30:14 +0000 (+0000) Subject: frontend work | wip #487 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=3bfc813266043658b4addff901b7aecf1924d008;p=fluidbook-v3.git frontend work | wip #487 @0.5 --- diff --git a/js/220-exemples.js b/js/220-exemples.js index 890042e..d64afb2 100644 --- a/js/220-exemples.js +++ b/js/220-exemples.js @@ -14,7 +14,8 @@ function load_exemples() { } function resizeExemples() { - var ww = $(window).width() * 0.9; + var ww = $('main').width() * 0.9; + $(".publications").css('width', ww); $('.publications a.featured').css({width: (ww / 2), height: ww / 2}); $('.publications a:not(.featured)').css({width: (ww / 4), height: ww / 4});