Fixing sidebar buttons again

This commit is contained in:
Eric Kotato 2020-03-30 12:24:51 +03:00
parent 29052af594
commit 772a178a66

View file

@ -71,8 +71,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) {