mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
fixed:app item pos error
This commit is contained in:
parent
6e42484868
commit
76d9ac05fc
@ -809,6 +809,7 @@ void MainPanelControl::calcuDockIconSize(int w, int h, PluginsItem *timePlugin,
|
||||
|
||||
for (int i = 0; i < m_appAreaSonLayout->count(); ++ i) {
|
||||
m_appAreaSonLayout->itemAt(i)->widget()->setMaximumWidth(h);
|
||||
m_appAreaSonLayout->itemAt(i)->widget()->setMaximumHeight(QWIDGETSIZE_MAX);
|
||||
}
|
||||
|
||||
} else {
|
||||
@ -822,6 +823,7 @@ void MainPanelControl::calcuDockIconSize(int w, int h, PluginsItem *timePlugin,
|
||||
|
||||
for (int i = 0; i < m_appAreaSonLayout->count(); ++ i) {
|
||||
m_appAreaSonLayout->itemAt(i)->widget()->setMaximumHeight(w);
|
||||
m_appAreaSonLayout->itemAt(i)->widget()->setMaximumWidth(QWIDGETSIZE_MAX);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user