Browse Source

fix: s'assurer que la croix ait la taille voulue

Fix #9
master
tcharlss 1 week ago
parent
commit
310565e3b5
  1. 3
      centre_image_gestion.js

3
centre_image_gestion.js

@ -91,7 +91,8 @@ function centre_image_croix(el, x, y) {
el.css("display", "inline-block").css("position", "relative")
.find("img").addClass("img_source").css("outline", "1px solid green").css("display", "block")
.parent()
.prepend("<img src='"+croix+"' class='croix_centre_image'>");
// Dimensions : forcer la taille quels que soient les styles appliqué au parent
.prepend("<img src='"+croix+"' class='croix_centre_image' width='24' height='24' style='width:24px; height:24px'>");
}
el.find("img.croix_centre_image").css("left", x+"px").css("top", y+"px");

Loading…
Cancel
Save