From 2b21e675a80a46b0616826e91fe0e52ac1da189c 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 ba31527..d12dd7b 100644 --- a/ui/widgets/side_bar_button.cpp +++ b/ui/widgets/side_bar_button.cpp @@ -102,8 +102,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) {