Allow sidebar buttons without text
This commit is contained in:
parent
659d46b693
commit
da67e47aa2
1 changed files with 1 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue