mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Fix calculation of icon offset
This commit is contained in:
parent
b0a9ed5082
commit
d183b31bbd
1 changed files with 2 additions and 1 deletions
|
|
@ -126,7 +126,8 @@ kpxcUI.updateIconPosition = function(iconClass) {
|
|||
};
|
||||
|
||||
kpxcUI.calculateIconOffset = function(field, size) {
|
||||
const offset = Math.floor((field.offsetHeight - size) / 3);
|
||||
const offset = Math.floor((field.offsetHeight / 2) - (size / 2) - 1);
|
||||
console.log(field.offsetHeight, size, offset);
|
||||
return (offset < 0) ? 0 : offset;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue