修复dataPanel大小超出dashboard时进行移动后,自动以右下侧对齐造成无法操作功能栏的问题

This commit is contained in:
duanshengchao 2024-11-19 17:22:46 +08:00
parent a0f22a8222
commit 9b86bb2140
2 changed files with 8 additions and 2 deletions

View File

@ -447,6 +447,12 @@ void CustomBorderContainer::autoAdjustGeometry(const QString& strOperation)
nMoveX = nMoveX - (m_pWidget->geometry().right() - parentWiget->width());
if(m_pWidget->geometry().bottom() > parentWiget->height())
nMoveY = nMoveY - (m_pWidget->geometry().bottom() - parentWiget->height());
//左上边界不能出界(自身大小大于父组件移动时会出现),不然无法移动(移动热点在上方)
if(nMoveX < 0)
nMoveX = 0;
if(nMoveY < 0)
nMoveY = 0;
}
else
{

View File

@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>1448</width>
<height>867</height>
<width>1256</width>
<height>773</height>
</rect>
</property>
<property name="windowTitle">