mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Merge pull request #2120 from tinyoverflow/fix-icon-placement
Fix calculation of icon offset
This commit is contained in:
commit
91cc1d17dc
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ 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);
|
||||
return (offset < 0) ? 0 : offset;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue