mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
fix panel size error
Change-Id: I9ed7d5726cdf82963c82e09331c981a031978375
This commit is contained in:
parent
56c04aa0d5
commit
513c28c0d6
@ -142,6 +142,7 @@ void MainWindow::updateGeometry()
|
||||
{
|
||||
const Position position = m_settings->position();
|
||||
|
||||
m_mainPanel->setFixedSize(m_settings->windowSize());
|
||||
m_mainPanel->updateDockPosition(position);
|
||||
m_mainPanel->updateDockDisplayMode(m_settings->displayMode());
|
||||
|
||||
@ -301,6 +302,9 @@ void MainWindow::narrow()
|
||||
case Right: finishPos.setX(size.width()); break;
|
||||
}
|
||||
|
||||
if (m_mainPanel->pos() == finishPos)
|
||||
return;
|
||||
|
||||
if (m_panelHideAni->state() == QPropertyAnimation::Running)
|
||||
return m_panelHideAni->setEndValue(finishPos);
|
||||
|
||||
@ -312,6 +316,9 @@ void MainWindow::narrow()
|
||||
|
||||
void MainWindow::updatePanelVisible()
|
||||
{
|
||||
if (m_settings->hideMode() == KeepShowing)
|
||||
return;
|
||||
|
||||
const Dock::HideState state = m_settings->hideState();
|
||||
|
||||
// qDebug() << state;
|
||||
|
Loading…
x
Reference in New Issue
Block a user