mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
fix: 在预览前先初始化预览界面的边距
在打开特效时,如果鼠标快速进入并退出预览窗口,此时在进入时会设置预览窗口的边距,退出没有重置边距,然后在关闭特效后,再次预览时,窗口标题会出现偏 移问题,在开始预览时全部重置下预览界面的边距 Log: 修复无窗口特效下,多个窗口任务栏预览,概率性显示错位问题 Bug: https://pms.uniontech.com/zentao/bug-view-57974.html Change-Id: I1e403dfb9262ec6c290468df49d4dfc6bcb827f5
This commit is contained in:
parent
26248213bf
commit
b6718bfd2d
@ -64,6 +64,9 @@ void PreviewContainer::setWindowInfos(const WindowInfoMap &infos, const WindowLi
|
||||
// check removed window
|
||||
for (auto it(m_snapshots.begin()); it != m_snapshots.end();)
|
||||
{
|
||||
//初始化预览界面边距
|
||||
it.value()->setContentsMargins(0, 0, 0, 0);
|
||||
|
||||
if (!infos.contains(it.key()))
|
||||
{
|
||||
m_windowListLayout->removeWidget(it.value());
|
||||
|
Loading…
x
Reference in New Issue
Block a user