Browse Source

fix scrolling in combolookup

Oleksandr Naumov 5 years ago
parent
commit
1088c4ce97
1 changed files with 1 additions and 1 deletions
  1. 1 1
      priv/js/comboLookup.js

+ 1 - 1
priv/js/comboLookup.js

@@ -88,7 +88,7 @@ function set_focus(elem, scroll) {
   if (elem) {
     if(currentItem) {currentItem.className = "dropdown-item"}
     elem.className = "dropdown-item focus"
-    if (scroll==true) {elem.scrollIntoView({block: "center", inline: "nearest"})}
+    if (scroll==true) {elem.scrollIntoView({block: "nearest", inline: "nearest"})}
     currentItem = elem
   }
 }