fix: Overlapping icons in the taskbar

当设置任务栏的位置为“左、右”时,插件区域返回的大小有问题,导致计算图标大小时,计算错误,使图标叠加在一起。

Log: 修复任务栏图标显示不下时重叠的问题。
Bug: https://pms.uniontech.com/zentao/bug-view-45000.html
Change-Id: I53a3c939c7487ad1c98eec8a0142e2072f98c951
Reviewed-on: http://gerrit.uniontech.com/c/dde-dock/+/3256
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: fanpengcheng <fanpengcheng@uniontech.com>
Reviewed-by: wangwei <wangwei@uniontech.com>
Tested-by: <mailman@uniontech.com>
This commit is contained in:
Zhang Qipeng 2020-09-01 20:59:03 +08:00 committed by zhangqipeng
parent ffa4a1de36
commit f7d519824a

View File

@ -309,7 +309,9 @@ void MainPanelControl::setPositonValue(Dock::Position position)
return;
m_position = position;
updateMainPanelLayout();
QTimer::singleShot(0, this, [=] {
updateMainPanelLayout();
});
}
void MainPanelControl::insertItem(int index, DockItem *item)