[Option][GUI] Folder options

This commit is contained in:
Eric Kotato 2022-09-15 23:22:40 +03:00 committed by Eric Kotato
parent 169ac07519
commit bbf364750b

View file

@ -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) {