some fixes in image planete

preferencesAboutTextFull
unknown 13 years ago
parent ed81281946
commit 622b4d9593
  1. 6
      resources/library/search/Image Planete.wgs/index.html

@ -78,6 +78,12 @@
// There is also a result.file property which has the escaped version // There is also a result.file property which has the escaped version
if (thumbnails) { if (thumbnails) {
newImg.src = result.file; newImg.src = result.file;
if(result.height >= result.width)
newImg.height = minHeight;
else{
newImg.width = minWidth;
//newImg.style.margin = (120 - result.height)/2 + "px 0";
}
} else { } else {
newImg.src = "./images/thumbnail_icon.png"; newImg.src = "./images/thumbnail_icon.png";
} }

Loading…
Cancel
Save