diff --git a/public/js/components/searchbar/searchbar.js b/public/js/components/searchbar/searchbar.js index be3ebec7a..7c0993e8a 100755 --- a/public/js/components/searchbar/searchbar.js +++ b/public/js/components/searchbar/searchbar.js @@ -27,13 +27,13 @@ export default { organisationunit: organisationunit }, template: ` -
- + v-model="this.searchsettings.searchstr" class="form-control" + type="search" placeholder="Search" aria-label="Search"> +
-
Unbekannter Ergebnistyp: '{{ res.type }}'.
@@ -79,13 +78,16 @@ export default { calcSearchResultExtent: function() { var rect = this.$refs.searchbox.getBoundingClientRect(); //console.log(window.innerWidth + ' ' + window.innerHeight + ' ' + JSON.stringify(rect)); - this.$refs.result.style.height = Math.floor(window.innerHeight * 0.80) + 'px'; + this.$refs.result.style.top = Math.floor(rect.bottom + 3) + 'px'; + this.$refs.result.style.right = Math.floor(window.innerWidth - rect.right) + 'px'; + this.$refs.result.style.width = Math.floor(window.innerWidth * 0.75) + 'px'; + this.$refs.result.style.height = Math.floor(window.innerHeight * 0.75) + 'px'; }, search: function() { if( this.searchtimer !== null ) { clearTimeout(this.searchtimer); } - if( this.searchsettings.searchstr.length >= 2 ) { + if( this.searchsettings.searchstr.length >= 3 ) { this.calcSearchResultExtent(); this.searchtimer = setTimeout( this.callsearchapi,