From 01d886d19ba0f276bccd104efc796913eb5d67d2 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann <Thomas.Hartmann@nokia.com> Date: Tue, 2 Mar 2010 10:21:28 +0100 Subject: [PATCH] QmlDesigner.propertyEditor: fixes bug in marging calulation --- .../components/propertyeditor/qmlanchorbindingproxy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmldesigner/components/propertyeditor/qmlanchorbindingproxy.cpp b/src/plugins/qmldesigner/components/propertyeditor/qmlanchorbindingproxy.cpp index 1cdfbd2d03f..141a5331571 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 { -- GitLab