mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
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:
parent
ffa4a1de36
commit
f7d519824a
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user