Fix(frontend):展开收起按钮偶尔会被遮挡
当滚动条开始不存在但展开后滚动条出现时,点击详情页后触发。 由于没考虑到详情页存在的情况,滚动条出现后会将长度设置过长导致按钮被遮挡。
This commit is contained in:
parent
73604c0dfe
commit
b9cfd2b2b7
|
@ -207,10 +207,18 @@ void SearchResultPage::initConnections()
|
||||||
setWidth(672);
|
setWidth(672);
|
||||||
});
|
});
|
||||||
connect(m_resultArea, &ResultArea::scrollBarAppeared, this, [ & ]{
|
connect(m_resultArea, &ResultArea::scrollBarAppeared, this, [ & ]{
|
||||||
|
if (m_detailArea->isHidden()) {
|
||||||
setWidth(672);
|
setWidth(672);
|
||||||
|
} else {
|
||||||
|
setWidth(296);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
connect(m_resultArea, &ResultArea::scrollBarIsHideen, this, [ & ]{
|
connect(m_resultArea, &ResultArea::scrollBarIsHideen, this, [ & ]{
|
||||||
|
if (m_detailArea->isHidden()) {
|
||||||
setWidth(672);
|
setWidth(672);
|
||||||
|
} else {
|
||||||
|
setWidth(296);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
connect(m_resultArea, &ResultArea::keyPressChanged, m_detailArea, &DetailArea::setWidgetInfo);
|
connect(m_resultArea, &ResultArea::keyPressChanged, m_detailArea, &DetailArea::setWidgetInfo);
|
||||||
connect(m_resultArea, &ResultArea::keyPressChanged, this, [=] () {
|
connect(m_resultArea, &ResultArea::keyPressChanged, this, [=] () {
|
||||||
|
|
Loading…
Reference in New Issue