mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
fix: 修复任务栏在arm平台上显示位置需要触发两次的问题
arm平台无动画,之前设置位置是在动画中设置,动画结束后未设置,现在动画结束时再设置一次即可 Log: 修复任务栏在arm平台切换位置显示异常问题 Bug: https://pms.uniontech.com/zentao/bug-view-41658.html Bug: https://pms.uniontech.com/zentao/bug-view-41724.html Change-Id: Ib0f24547474fa14fc9c09038042ddc261b79c3f5 Reviewed-on: http://gerrit.uniontech.com/c/dde-dock/+/1389 Reviewed-by: <mailman@uniontech.com> Reviewed-by: niecheng <niecheng@uniontech.com> Reviewed-by: fanpengcheng <fanpengcheng@uniontech.com> Tested-by: <mailman@uniontech.com>
This commit is contained in:
parent
cedfb947ed
commit
a73eca90be
@ -397,6 +397,9 @@ void MultiScreenWorker::showAniFinished()
|
||||
{
|
||||
const QRect rect = dockRect(m_ds.current(), m_position, HideMode::KeepShowing, m_displayMode);
|
||||
|
||||
parent()->setFixedSize(rect.size());
|
||||
parent()->setGeometry(rect);
|
||||
|
||||
parent()->panel()->setFixedSize(rect.size());
|
||||
parent()->panel()->move(0, 0);
|
||||
|
||||
@ -407,7 +410,10 @@ void MultiScreenWorker::showAniFinished()
|
||||
|
||||
void MultiScreenWorker::hideAniFinished()
|
||||
{
|
||||
const QRect rect = dockRect(m_ds.current(), m_position, HideMode::KeepShowing, m_displayMode);
|
||||
const QRect rect = dockRect(m_ds.current(), m_position, HideMode::KeepHidden, m_displayMode);
|
||||
|
||||
parent()->setFixedSize(rect.size());
|
||||
parent()->setGeometry(rect);
|
||||
|
||||
parent()->panel()->setFixedSize(rect.size());
|
||||
parent()->panel()->move(0, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user