Skip to content

Commit

Permalink
Cosmetics on password panel width
Browse files Browse the repository at this point in the history
  • Loading branch information
Çağatay Çivici authored and Çağatay Çivici committed Aug 2, 2018
1 parent cbb1604 commit b5fc221
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/app/components/password/password.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.ui-password-panel {
padding: .25em .5em;
width: 10em;
position: absolute;
}

Expand Down
3 changes: 2 additions & 1 deletion src/app/components/password/password.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {DomHandler} from '../dom/domhandler';
})
export class Password implements OnDestroy,DoCheck {

@Input() promptLabel: string = 'Please enter a password';
@Input() promptLabel: string = 'Enter a password';

@Input() weakLabel: string = 'Weak';

Expand Down Expand Up @@ -59,6 +59,7 @@ export class Password implements OnDestroy,DoCheck {
this.info.textContent = this.promptLabel;
this.panel.appendChild(this.meter);
this.panel.appendChild(this.info);
this.panel.style.minWidth = this.domHandler.getOuterWidth(this.el.nativeElement) + 'px';
document.body.appendChild(this.panel);
}

Expand Down

0 comments on commit b5fc221

Please sign in to comment.