Skip to content

Commit

Permalink
Center ApplicationTile in drop container
Browse files Browse the repository at this point in the history
  • Loading branch information
Iktwo committed Aug 13, 2015
1 parent 50a9f29 commit eb19917
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/qml/ApplicationTile.qml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,19 @@ Item {
when: !mouseArea.drag.active

ParentChange { target: root; parent: root._newParent }

AnchorChanges {
target: root

anchors {
verticalCenter: parent !== root._originalParent ? parent.verticalCenter : undefined
horizontalCenter: parent !== root._originalParent ? parent.horizontalCenter : undefined
left: undefined
right: undefined
top: undefined
bottom: undefined
}
}
}
]
}
Expand Down

0 comments on commit eb19917

Please sign in to comment.