Skip to content

Commit

Permalink
Update search.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jokd committed Nov 2, 2023
1 parent b2a2e7d commit d6714c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controls/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ const Search = function Search(options = {}) {
return suggestionValue.toLowerCase().includes(userInput.toLowerCase()) ? suggestionValue : false;
}
});
const mapEl = origo.api().getMap().getTargetElement();
const mapEl = viewer.getMap().getTargetElement();
const listHeight = mapEl.offsetHeight / 2;
awesomplete.ul.style.maxHeight = `${listHeight}px`;
awesomplete.ul.style.overflowY = 'auto';
Expand Down

0 comments on commit d6714c9

Please sign in to comment.