mirror of https://github.com/keeweb/keeweb.git
fix #895: generator positioning in list view
This commit is contained in:
parent
2c0624d5b4
commit
85e9a4c4c6
|
@ -105,8 +105,16 @@ class FieldViewText extends FieldView {
|
|||
} else {
|
||||
const fieldRect = this.input[0].getBoundingClientRect();
|
||||
const shadowSpread = parseInt(this.input.css('--focus-shadow-spread')) || 0;
|
||||
const pos = { left: fieldRect.left };
|
||||
const top = fieldRect.bottom + shadowSpread;
|
||||
const windowHeight = document.documentElement.clientHeight;
|
||||
if (top > windowHeight / 2 && top > 200) {
|
||||
pos.bottom = windowHeight - fieldRect.top + shadowSpread;
|
||||
} else {
|
||||
pos.top = top;
|
||||
}
|
||||
this.gen = new GeneratorView({
|
||||
pos: { left: fieldRect.left, top: fieldRect.bottom + shadowSpread },
|
||||
pos,
|
||||
password: this.value
|
||||
});
|
||||
this.gen.render();
|
||||
|
|
|
@ -19,6 +19,7 @@ Release notes
|
|||
`-` fix #1293: copying full urls
|
||||
`-` fix #1378: screen orientation issues on Android PWA
|
||||
`-` fix #1338: minimized option not working on linux
|
||||
`-` fix #895: generator positioning in list view
|
||||
|
||||
##### v1.12.3 (2019-11-06)
|
||||
`-` fix #1335: removed the menubar on Windows and Linux
|
||||
|
|
Loading…
Reference in New Issue