Correction de 2153a64 pour gérer les tableaux

This commit is contained in:
Hugo Roussille 2016-09-12 16:48:15 +02:00
parent 2153a64f58
commit ca79ab0252

View file

@ -18,7 +18,7 @@
}
.descTable{
width: auto;
width: 100%;
margin: 0 auto 1em;
border-bottom: 2px solid;
border-collapse: collapse;
@ -70,6 +70,10 @@
// Correction de la taille des images
$(document).ready(function() {
$(".descTable").each(function() {
$(this).width($("body").width());
});
$(".imgDesc").on("load", function() {
// Dimensions
@ -78,7 +82,7 @@
w = $(this).width();
h = $(this).height();
r = w/h; // Ratio de l'image
maxWidth = $(this).parent().width();
maxWidth = $("body").width();
if (r * origHeight > maxWidth)
{