PHRAS-1113 - fix tooltip positionning: handle dynamic size of thumbnails

This commit is contained in:
Florian BLOUET
2016-05-20 10:58:41 +02:00
parent 5be77091cf
commit 4e7dac9e9f

View File

@@ -368,8 +368,8 @@
var $eventTarget = $origEventTarget.closest('.diapo');
if ($eventTarget.length > 0) {
// tooltip from records answer
recordWidthOffset = 148; // remove size
recordHeightOffset = 195;
recordWidthOffset = $eventTarget.width()-2; // remove width with margin/2
recordHeightOffset = $eventTarget.height()+2; // remove height with margin/2
// change offsets:
topOffset = 14;
leftOffset = 1;