From 0457f567ff799872bb653fd414701ec4d714c641 Mon Sep 17 00:00:00 2001 From: RadRussianRus Date: Thu, 15 Sep 2022 23:22:40 +0300 Subject: [PATCH] [Option][GUI] Folder options --- ui/widgets/side_bar_button.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui/widgets/side_bar_button.cpp b/ui/widgets/side_bar_button.cpp index 470d94a..986df56 100644 --- a/ui/widgets/side_bar_button.cpp +++ b/ui/widgets/side_bar_button.cpp @@ -103,8 +103,7 @@ int SideBarButton::resizeGetHeight(int newWidth) { const auto text = std::min( _text.countHeight(newWidth - _st.textSkip * 2), _st.style.font->height * kMaxLabelLines); - const auto add = text - _st.style.font->height; - return result + std::max(add, 0); + return result + text; } void SideBarButton::paintEvent(QPaintEvent *e) {