Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
alignOverlay() {
if(this.appendTo)
DomHandler.absolutePosition(this.overlay, this.inputViewChild.nativeElement);
else
DomHandler.relativePosition(this.overlay, this.inputViewChild.nativeElement);
}
alignOverlay() {
if (this.overlay) {
if (this.appendTo)
DomHandler.absolutePosition(this.overlay, this.containerViewChild.nativeElement);
else
DomHandler.relativePosition(this.overlay, this.containerViewChild.nativeElement);
}
}
this.zone.runOutsideAngular(() => {
setTimeout(() => {
DomHandler.addClass(this.panel, 'ui-password-panel-visible');
DomHandler.removeClass(this.panel, 'ui-password-panel-hidden');
}, 1);
DomHandler.absolutePosition(this.panel, this.el.nativeElement);
});
}