Skip to content

Commit

Permalink
fixing tooltip hover problem, UI: Renewing Study page #1802
Browse files Browse the repository at this point in the history
  • Loading branch information
shral committed Mar 13, 2019
1 parent 37045e5 commit 8157484
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions dcm4chee-arc-ui2/src/app/helpers/tooltip/tooltip.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,16 @@ export class TooltipDirective {
div2.appendChild(this.i);
this.div.appendChild(div2);

// this.el.nativeElement.addEventListener("mouseup",()=>{
// window.prompt("Copy to clipboard: Ctrl+C, Enter4", this.tooltip);
// });
// this.el.nativeElement.appendChild(this.div);
let position = this.offset(this.el.nativeElement);
this.div.style.position = "absolute";
this.div.style.left = (position.left + 15*1)+'px';
this.div.style.top = (position.top+30*1) +'px';
this.div.mouseenter = this.showTooltip();
this.div.style.top = (position.top+25*1) +'px';
this.div.addEventListener('mouseenter',(e)=>{
this.showTooltip();
});
this.div.addEventListener('mouseleave',(e)=>{
this.hideTooltip();
});
document.querySelector('body').appendChild(this.div);
this.placeholderSet = true;
}
Expand Down

0 comments on commit 8157484

Please sign in to comment.