@klippa/ngx-enhancy-forms 14.7.14 → 14.7.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -393,6 +393,8 @@ class WithTooltipDirective {
|
|
|
393
393
|
this.div.style.zIndex = '2';
|
|
394
394
|
this.div.style.color = '#515365';
|
|
395
395
|
this.div.style.position = 'fixed';
|
|
396
|
+
this.div.style.left = `${el.nativeElement.getBoundingClientRect().x}px`;
|
|
397
|
+
this.div.style.top = `${el.nativeElement.getBoundingClientRect().y}px`;
|
|
396
398
|
this.div.style.transform = 'translate(-25%, calc(-100% - 0.3rem))';
|
|
397
399
|
this.div.style.backgroundColor = 'white';
|
|
398
400
|
this.div.style.border = '1px solid black';
|
|
@@ -404,6 +406,8 @@ class WithTooltipDirective {
|
|
|
404
406
|
this.triangle = document.createElement('div');
|
|
405
407
|
this.triangle.style.zIndex = '1';
|
|
406
408
|
this.triangle.style.position = 'fixed';
|
|
409
|
+
this.triangle.style.left = `${el.nativeElement.getBoundingClientRect().x}px`;
|
|
410
|
+
this.triangle.style.top = `${el.nativeElement.getBoundingClientRect().y}px`;
|
|
407
411
|
this.triangle.style.transform = 'translate(1rem, calc(-100% + 0.1rem))';
|
|
408
412
|
this.triangle.style.width = '0';
|
|
409
413
|
this.triangle.style.height = '0';
|
|
@@ -413,7 +417,6 @@ class WithTooltipDirective {
|
|
|
413
417
|
el.nativeElement.prepend(this.triangle);
|
|
414
418
|
});
|
|
415
419
|
el.nativeElement.addEventListener('mouseout', () => {
|
|
416
|
-
return;
|
|
417
420
|
try {
|
|
418
421
|
el.nativeElement.removeChild(this.div);
|
|
419
422
|
}
|