mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
feat: plugin will be overlap when change the dock position bug for 13105
This commit is contained in:
parent
89ed26e574
commit
7cd081710e
@ -274,3 +274,13 @@ int NormalContainer::whereToInsertSystemTrayByDefault(FashionTrayWidgetWrapper *
|
||||
|
||||
return insertIndex;
|
||||
}
|
||||
void NormalContainer::updateSize()
|
||||
{
|
||||
if (QPropertyAnimation::Stopped == m_sizeAnimation->state()) {
|
||||
if (dockPosition() == Dock::Top || dockPosition() == Dock::Bottom)
|
||||
setMaximumWidth(totalSize().width());
|
||||
else {
|
||||
setMaximumHeight(totalSize().height());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -17,6 +17,7 @@ public:
|
||||
void setExpand(const bool expand) Q_DECL_OVERRIDE;
|
||||
int itemCount() override;
|
||||
QSize sizeHint() const override;
|
||||
void updateSize();
|
||||
|
||||
protected:
|
||||
int whereToInsert(FashionTrayWidgetWrapper *wrapper) Q_DECL_OVERRIDE;
|
||||
|
@ -381,4 +381,6 @@ void FashionTrayItem::resizeTray()
|
||||
|
||||
m_controlWidget->setFixedSize(QWIDGETSIZE_MAX, m_iconSize);
|
||||
}
|
||||
|
||||
m_normalContainer->updateSize();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user