mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
Fix preview does not show correctly when resizePreview
This commit is contained in:
parent
0f07e83b4f
commit
dea0ca42ca
@ -117,7 +117,11 @@ void AbstractDockItem::cancelHide()
|
||||
void AbstractDockItem::resizePreview()
|
||||
{
|
||||
m_previewAR->resizeWithContent();
|
||||
m_previewAR->showAtBottom(globalX() + width() / 2,globalY() - 5);
|
||||
if (!m_previewAR->isHidden())
|
||||
{
|
||||
m_previewAR->showAtBottom(globalX() + width() / 2,globalY() - 5);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
void AbstractDockItem::showMenu()
|
||||
|
@ -56,7 +56,7 @@ void PluginItemWrapper::leaveEvent(QEvent *)
|
||||
{
|
||||
emit mouseExited();
|
||||
|
||||
hidePreview();
|
||||
// hidePreview();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user