aboutsummaryrefslogtreecommitdiff
path: root/src/SearchBar.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-08-18 20:37:48 +0200
committerdec05eba <dec05eba@protonmail.com>2021-08-18 20:37:48 +0200
commit24335ceccbf81e9a1bf49c1a2878c8ee31c63b69 (patch)
tree4ff1d0af2ace37f26b4a3ca36859cec2fde354c8 /src/SearchBar.cpp
parentdf95eccc5e8ef62ad9c83a925adc83926491dfb3 (diff)
Show line at top/bottom when there are items above/below that are not visible
Diffstat (limited to 'src/SearchBar.cpp')
-rw-r--r--src/SearchBar.cpp2
1 files changed, 1 insertions, 1 deletions
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 {