From c32046002d1d6c58c02ccfc5fb167de97cc81f1b Mon Sep 17 00:00:00 2001 From: Harald Bamberger Date: Tue, 19 Nov 2024 16:24:36 +0100 Subject: [PATCH] add buffer to height calculation --- public/js/components/searchbar/searchbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/components/searchbar/searchbar.js b/public/js/components/searchbar/searchbar.js index a1e0af854..caaccff4a 100644 --- a/public/js/components/searchbar/searchbar.js +++ b/public/js/components/searchbar/searchbar.js @@ -111,7 +111,7 @@ export default { calcSearchResultHeight: function() { const rect = this.$refs.results.getBoundingClientRect(); if( rect.height > 0 && rect.height < (window.innerHeight * 0.8) ) { - this.$refs.result.style.height = Math.ceil(rect.height) + 'px'; + this.$refs.result.style.height = Math.ceil(rect.height + 16) + 'px'; } else { this.$refs.result.style.height = Math.floor(window.innerHeight * 0.8) + 'px'; }