diff --git a/src/plugins/qmldesigner/components/propertyeditor/qmlanchorbindingproxy.cpp b/src/plugins/qmldesigner/components/propertyeditor/qmlanchorbindingproxy.cpp index 1cdfbd2d03fea6685c5c18039684972cdaaec542..141a53315715c90086c7b5a034c26fd9f8421553 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/qmlanchorbindingproxy.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/qmlanchorbindingproxy.cpp @@ -334,7 +334,7 @@ void QmlAnchorBindingProxy::calcLeftMargin() void QmlAnchorBindingProxy::calcRightMargin() { if (m_rightTarget == m_fxItemNode.modelNode().parentProperty().parentModelNode()) { - qreal rightMargin = transformedBoundingBox().right() - parentBoundingBox().right(); + qreal rightMargin = parentBoundingBox().right() - transformedBoundingBox().right(); m_fxItemNode.anchors().setMargin( AnchorLine::Right, rightMargin); m_fxItemNode.anchors().setAnchor(AnchorLine::Right, m_rightTarget, AnchorLine::Right); } else {