Fix PHRAS-123 Fix tooltip content display

This commit is contained in:
Nicolas Le Goff
2014-05-22 14:48:58 +02:00
parent 7eb09ccabe
commit ab5f7d4492
3 changed files with 7 additions and 9 deletions

View File

@@ -414,7 +414,7 @@
}
if (resizeImgTips) {
var factor = Math.min((width - 45) / width, (height - 75) / height);
var factor = Math.max(Math.min((width - 45) / width, (height - 75) / height), 1);
var imgWidth = Math.round(width * factor);
var imgHeight = Math.round(height * factor);