Team:Heidelberg/Team

From 2013.igem.org

(Difference between revisions)
m
m
Line 104: Line 104:
     var picsperWidth = Math.floor($('#picscontainer').width() / 150);
     var picsperWidth = Math.floor($('#picscontainer').width() / 150);
     var picsperHeight = Math.ceil(($('.teamimage').length - 2 * picsperWidth) / 2) + 2;
     var picsperHeight = Math.ceil(($('.teamimage').length - 2 * picsperWidth) / 2) + 2;
 +
    if (picsperHeight <= 3) {
 +
        picsperHeight = 4; // need space for panel
 +
        picsperWidth--;
 +
    }
     return {h: picsperWidth, v: picsperHeight};
     return {h: picsperWidth, v: picsperHeight};
}
}
Line 112: Line 116:
         animated = true;
         animated = true;
         var picsperside = getPicsPerSide();
         var picsperside = getPicsPerSide();
-
        if (picsperside.v <= 3) {
 
-
            picsperside.v = 4; // need space for panel
 
-
            picsperside.h--;
 
-
        }
 
         var height = (picsperside.v - 2) * 170; // jQuery adds padding
         var height = (picsperside.v - 2) * 170; // jQuery adds padding
         var width = $('#picscontainer').height(height).width();
         var width = $('#picscontainer').height(height).width();

Revision as of 00:50, 5 October 2013