mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 14:03:27 +00:00
Fix tooltip image resize factor
This commit is contained in:
@@ -414,7 +414,10 @@
|
||||
}
|
||||
|
||||
if (resizeImgTips) {
|
||||
var factor = Math.max(Math.min((width - 45) / width, (height - 75) / height), 1);
|
||||
var factor = Math.min((width - 45) / width, (height - 75) / height);
|
||||
if (factor > 1) {
|
||||
factor = 1;
|
||||
}
|
||||
var imgWidth = Math.round(width * factor);
|
||||
var imgHeight = Math.round(height * factor);
|
||||
|
||||
|
Reference in New Issue
Block a user