fix generator

This commit is contained in:
antelle 2019-09-08 11:50:26 +02:00
parent ba56444a6e
commit c5f2bd4aa3
1 changed files with 2 additions and 1 deletions

View File

@ -84,9 +84,10 @@ const FieldViewText = FieldView.extend({
this.hideGenerator();
} else {
const fieldRect = this.input[0].getBoundingClientRect();
const shadowSpread = parseInt(this.input.css('--focus-shadow-spread'));
this.gen = new GeneratorView({
model: {
pos: { left: fieldRect.left, top: fieldRect.bottom },
pos: { left: fieldRect.left, top: fieldRect.bottom + shadowSpread },
password: this.value
}
}).render();