reposition when resize if there is a visualparent
This commit is contained in:
parent
fb52783c48
commit
bb7157a59e
@ -349,6 +349,10 @@ void DialogProxy::syncToMainItemSize()
|
||||
QSize(m_frameSvgItem->margins()->left() + m_frameSvgItem->margins()->right(),
|
||||
m_frameSvgItem->margins()->top() + m_frameSvgItem->margins()->bottom());
|
||||
resize(s);
|
||||
if (visualParent()) {
|
||||
setPosition(popupPosition(visualParent(), Qt::AlignCenter));
|
||||
}
|
||||
|
||||
emit widthChanged(s.width());
|
||||
emit heightChanged(s.height());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user