Commit 01d886d1 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.propertyEditor: fixes bug in marging calulation

parent 3d572559
......@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment