Try using
anchors { left: parent.left leftMargin: units.gu(1) right: parent.right rightMargin: units.gu(1) verticalCenter: parent.verticalCenter }
Its probably because it doesn't have anything to bind to on the left side, so then just uses the x value. By then setting left: parent.left that should then let you use leftMargin.
« Back to merge proposal
Try using
anchors { verticalCenter
left: parent.left
leftMargin: units.gu(1)
right: parent.right
rightMargin: units.gu(1)
verticalCenter: parent.
}
Its probably because it doesn't have anything to bind to on the left side, so then just uses the x value.
By then setting left: parent.left that should then let you use leftMargin.