From 1512502cea7693780de8dbebd49770dd8311adc2 Mon Sep 17 00:00:00 2001 From: iaom Date: Fri, 17 Jun 2022 15:55:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=A0=87=E9=A2=98=E6=A0=8F?= =?UTF-8?q?=E5=B1=95=E5=BC=80=E7=BD=AE=E9=A1=B6=E5=90=8E=EF=BC=8C=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E6=94=B6=E5=9B=9E=E4=BD=8D=E7=BD=AE=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/control/stack-pages/search-page-section.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/control/stack-pages/search-page-section.cpp b/frontend/control/stack-pages/search-page-section.cpp index 0863023..0b42fc9 100644 --- a/frontend/control/stack-pages/search-page-section.cpp +++ b/frontend/control/stack-pages/search-page-section.cpp @@ -510,8 +510,9 @@ void ResultArea::setupConnectionsForWidget(ResultWidget *widget) }); connect(widget, &ResultWidget::retractClicked, this, [=] () {//点击收起搜索结果后 if (!m_titleLabel->isHidden()) { - m_titleLabel->hide(); this->setViewportMargins(0,0,0,0); + this->verticalScrollBar()->setValue(widget->pos().ry()); + m_titleLabel->hide(); } }); connect(widget, &ResultWidget::sendBestListData, m_bestListWidget, &BestListWidget::sendBestListData);