tiagoroldao / angular2-tests

Experiments in angular 2
9 stars 7 forks source link

Position Issue #1

Open gitonworld opened 8 years ago

gitonworld commented 8 years ago

MODULE: tooltip.component.ts

HANDLER: private position()

ISSUE: ToolTip never positions properly. I use many components that use templateUrl and when I add [tooltip]="{position:'left'} to any of these the tooltip is positioned many many pixels off. I commented out the following code and it now seems to work.

WORKAROUND - // $(this.elementRef.nativeElement).css( // { // top: position.top + "px", // left: position.left + "px", // display: "block", // } // );