mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
bugfix: app-icon position incorrect on ClassicMode
Change-Id: I0bea1a534ad61ee0e0e1f7d69eff51d29e713e54
This commit is contained in:
parent
79f1630578
commit
b670acc7eb
Notes:
Deepin Code Review
2016-06-14 07:19:47 +00:00
Verified+1: Anonymous Coward #1000004 Code-Review+2: <mr.asianwang@gmail.com> Submitted-by: <mr.asianwang@gmail.com> Submitted-at: Tue, 22 Sep 2015 10:56:23 +0800 Reviewed-on: https://cr.deepin.io/7222 Project: dde/dde-dock Branch: refs/heads/master
@ -345,7 +345,10 @@ void AppItem::reanchorIcon()
|
||||
m_appIcon->move((width() - m_appIcon->width()) / 2, (height() - m_appIcon->height()) / 2);
|
||||
break;
|
||||
case Dock::ClassicMode:
|
||||
m_appIcon->move((height() - m_appIcon->height()) / 2, (height() - m_appIcon->height()) / 2);
|
||||
if (itemData().isActived)
|
||||
m_appIcon->move((height() - m_appIcon->height()) / 2, (height() - m_appIcon->height()) / 2);
|
||||
else
|
||||
m_appIcon->move((width() - m_appIcon->width()) / 2, (height() - m_appIcon->height()) / 2);
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@ -374,6 +377,7 @@ void AppItem::setActived(bool value)
|
||||
resize(m_dockModeData->getActivedItemWidth(), m_dockModeData->getItemHeight());
|
||||
|
||||
m_appBackground->setIsActived(value);
|
||||
reanchorIcon();
|
||||
}
|
||||
|
||||
void AppItem::invokeMenuItem(QString id, bool)
|
||||
|
Loading…
x
Reference in New Issue
Block a user