From 24335ceccbf81e9a1bf49c1a2878c8ee31c63b69 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 18 Aug 2021 20:37:48 +0200 Subject: Show line at top/bottom when there are items above/below that are not visible --- src/SearchBar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/SearchBar.cpp') diff --git a/src/SearchBar.cpp b/src/SearchBar.cpp index c1f9ceb..31e54fb 100644 --- a/src/SearchBar.cpp +++ b/src/SearchBar.cpp @@ -268,7 +268,7 @@ namespace QuickMedia { float SearchBar::getBottomWithoutShadow() const { float font_height = text.getCharacterSize() + 7.0f; - return std::floor(font_height + background_margin_vertical * 2.0f) + padding_top + padding_bottom; + return std::floor(font_height + background_margin_vertical * 2.0f + padding_top + padding_bottom); } std::string SearchBar::get_text() const { -- cgit v1.2.3