[Option][GUI] Folder options
This commit is contained in:
parent
b540beff07
commit
0457f567ff
1 changed files with 1 additions and 2 deletions
|
|
@ -103,8 +103,7 @@ int SideBarButton::resizeGetHeight(int newWidth) {
|
||||||
const auto text = std::min(
|
const auto text = std::min(
|
||||||
_text.countHeight(newWidth - _st.textSkip * 2),
|
_text.countHeight(newWidth - _st.textSkip * 2),
|
||||||
_st.style.font->height * kMaxLabelLines);
|
_st.style.font->height * kMaxLabelLines);
|
||||||
const auto add = text - _st.style.font->height;
|
return result + text;
|
||||||
return result + std::max(add, 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SideBarButton::paintEvent(QPaintEvent *e) {
|
void SideBarButton::paintEvent(QPaintEvent *e) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue