reposition when resize if there is a visualparent

This commit is contained in:
Marco Martin 2014-01-09 11:38:18 +01:00
parent fb52783c48
commit bb7157a59e

View File

@ -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());
}